[llvm] aac943c - [NFC] Replaced BB->getInstList().front() with BB->front()

Vasileios Porpodas via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 24 00:08:14 PST 2022


Author: Vasileios Porpodas
Date: 2022-11-23T23:55:35-08:00
New Revision: aac943cf9fe337d02fe36e4039d223464b42939b

URL: https://github.com/llvm/llvm-project/commit/aac943cf9fe337d02fe36e4039d223464b42939b
DIFF: https://github.com/llvm/llvm-project/commit/aac943cf9fe337d02fe36e4039d223464b42939b.diff

LOG: [NFC] Replaced BB->getInstList().front() with BB->front()

Differential Revision: https://reviews.llvm.org/D138620

Added: 
    

Modified: 
    llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
index d991b8c931aca..7a68a01880a21 100644
--- a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
+++ b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
@@ -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);
 


        


More information about the llvm-commits mailing list