diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-09-26 15:16:05 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-09-26 15:16:05 +0000 |
commit | be3338a5de14595e51028bccfd10d696daf87021 (patch) | |
tree | 24d60b6024a113a7b6d93d8eed625cc15c8e6d6d /unittests/Transforms | |
parent | 3e7735fe1c9e8f1cbad1bac02fbb998017fd0cbb (diff) | |
download | external_llvm-be3338a5de14595e51028bccfd10d696daf87021.zip external_llvm-be3338a5de14595e51028bccfd10d696daf87021.tar.gz external_llvm-be3338a5de14595e51028bccfd10d696daf87021.tar.bz2 |
Remove unneeded and invalid SetInsertPoint calls from unittest.
BB->end() returns a sentinel value that is not a legal insert point.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164699 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Transforms')
-rw-r--r-- | unittests/Transforms/Utils/IntegerDivision.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/unittests/Transforms/Utils/IntegerDivision.cpp b/unittests/Transforms/Utils/IntegerDivision.cpp index e5b84b8..a321139 100644 --- a/unittests/Transforms/Utils/IntegerDivision.cpp +++ b/unittests/Transforms/Utils/IntegerDivision.cpp @@ -47,8 +47,6 @@ TEST(IntegerDivision, SDiv) { Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::Sub); - - Builder.SetInsertPoint(BB->end()); } TEST(IntegerDivision, UDiv) { @@ -79,8 +77,6 @@ TEST(IntegerDivision, UDiv) { Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::PHI); - - Builder.SetInsertPoint(BB->end()); } TEST(IntegerDivision, SRem) { @@ -111,8 +107,6 @@ TEST(IntegerDivision, SRem) { Instruction* Remainder = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); EXPECT_TRUE(Remainder && Remainder->getOpcode() == Instruction::Sub); - - Builder.SetInsertPoint(BB->end()); } TEST(IntegerDivision, URem) { @@ -143,8 +137,6 @@ TEST(IntegerDivision, URem) { Instruction* Remainder = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); EXPECT_TRUE(Remainder && Remainder->getOpcode() == Instruction::Sub); - - Builder.SetInsertPoint(BB->end()); } } |