Skip to content
Snippets Groups Projects
Commit 576f5a10 authored by Benjamin Kramer's avatar Benjamin Kramer
Browse files

Remove unneeded and invalid SetInsertPoint calls from unittest.

BB->end() returns a sentinel value that is not a legal insert point.

llvm-svn: 164699
parent c38fab20
No related branches found
No related tags found
No related merge requests found
......@@ -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());
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment