From 9230610f0b8c7cba0bc74d63d17f04570946be73 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Fri, 26 May 2017 12:07:12 +0000 Subject: [PATCH] Remove unnecessary double-assignment triggering -Wsequence-point. llvm-svn: 303974 --- llvm/unittests/IR/BasicBlockTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/unittests/IR/BasicBlockTest.cpp b/llvm/unittests/IR/BasicBlockTest.cpp index 5bf434de9618..f1777e35b82c 100644 --- a/llvm/unittests/IR/BasicBlockTest.cpp +++ b/llvm/unittests/IR/BasicBlockTest.cpp @@ -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.