[llvm] r303974 - Remove unnecessary double-assignment triggering -Wsequence-point.

Daniel Jasper via llvm-commits llvm-commits at lists.llvm.org
Fri May 26 05:07:12 PDT 2017


Author: djasper
Date: Fri May 26 07:07:12 2017
New Revision: 303974

URL: http://llvm.org/viewvc/llvm-project?rev=303974&view=rev
Log:
Remove unnecessary double-assignment triggering -Wsequence-point.

Modified:
    llvm/trunk/unittests/IR/BasicBlockTest.cpp

Modified: llvm/trunk/unittests/IR/BasicBlockTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/BasicBlockTest.cpp?rev=303974&r1=303973&r2=303974&view=diff
==============================================================================
--- llvm/trunk/unittests/IR/BasicBlockTest.cpp (original)
+++ llvm/trunk/unittests/IR/BasicBlockTest.cpp Fri May 26 07:07:12 2017
@@ -60,7 +60,7 @@ TEST(BasicBlockTest, PhiRange) {
   // Test that we can use const iterators and generally that the iterators
   // behave like iterators.
   BasicBlock::const_phi_iterator CI;
-  CI = CI = BB->phis().begin();
+  CI = BB->phis().begin();
   EXPECT_NE(CI, BB->phis().end());
 
   // And iterate a const range.




More information about the llvm-commits mailing list