[NFC] Replaced BB->getInstList().front() with BB->front()
Differential Revision: https://reviews.llvm.org/D138620
This commit is contained in:
parent
5f759beaae
commit
aac943cf9f
|
@ -1244,7 +1244,7 @@ TEST_F(OpenMPIRBuilderTest, CanonicalLoopSimple) {
|
|||
EXPECT_EQ(Loop->getTripCount(), TripCount);
|
||||
|
||||
BasicBlock *Body = Loop->getBody();
|
||||
Instruction *CmpInst = &Body->getInstList().front();
|
||||
Instruction *CmpInst = &Body->front();
|
||||
EXPECT_TRUE(isa<ICmpInst>(CmpInst));
|
||||
EXPECT_EQ(CmpInst->getOperand(0), IndVar);
|
||||
|
||||
|
|
Loading…
Reference in New Issue