mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 00:14:20 +00:00
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
This commit is contained in:
parent
3e7735fe1c
commit
be3338a5de
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user