[llvm] 5fa6e8c - [InstrRef] Fix unused variable in InstrRefLDVTest

Stephen Tozer via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 22 12:53:58 PDT 2022


Author: Stephen Tozer
Date: 2022-08-22T20:52:47+01:00
New Revision: 5fa6e8c3ed88f23119600f3e3bcc0565f0d06382

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

LOG: [InstrRef] Fix unused variable in InstrRefLDVTest

Added: 
    

Modified: 
    llvm/unittests/CodeGen/InstrRefLDVTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/CodeGen/InstrRefLDVTest.cpp b/llvm/unittests/CodeGen/InstrRefLDVTest.cpp
index e79789dc370b..a16855f98856 100644
--- a/llvm/unittests/CodeGen/InstrRefLDVTest.cpp
+++ b/llvm/unittests/CodeGen/InstrRefLDVTest.cpp
@@ -1970,8 +1970,8 @@ TEST_F(InstrRefLDVTest, pickVPHILocDiamond) {
   // cannot be joined.
   DbgOpID ConstOneID = addConstDbgOp(MachineOperand::CreateImm(1));
   DbgOpID Locs4[] = {LiveInRaxID, ConstOneID};
-  VLiveOuts[1] = DbgValue(Locs0, TwoOpProps);
-  VLiveOuts[2] = DbgValue(Locs2, TwoOpProps);
+  VLiveOuts[1] = DbgValue(Locs3, TwoOpProps);
+  VLiveOuts[2] = DbgValue(Locs4, TwoOpProps);
   OutValues.clear();
   Result = pickVPHILoc(OutValues, *MBB3, VLiveOutIdx, MOutLocs, Preds);
   EXPECT_FALSE(Result);


        


More information about the llvm-commits mailing list