[llvm] fdbcd76 - [ConstantsTest] Fix unused variable warning (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 16 02:43:33 PDT 2023


Author: Nikita Popov
Date: 2023-03-16T10:43:13+01:00
New Revision: fdbcd76999126409e3797ad1f11047ec7937a9b0

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

LOG: [ConstantsTest] Fix unused variable warning (NFC)

Added: 
    

Modified: 
    llvm/unittests/IR/ConstantsTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/IR/ConstantsTest.cpp b/llvm/unittests/IR/ConstantsTest.cpp
index 947cc7f89243..577d9e9e697a 100644
--- a/llvm/unittests/IR/ConstantsTest.cpp
+++ b/llvm/unittests/IR/ConstantsTest.cpp
@@ -207,7 +207,6 @@ TEST(ConstantsTest, AsInstructionsTest) {
   Type *Int64Ty = Type::getInt64Ty(Context);
   Type *Int32Ty = Type::getInt32Ty(Context);
   Type *Int16Ty = Type::getInt16Ty(Context);
-  Type *Int1Ty = Type::getInt1Ty(Context);
   Type *FloatTy = Type::getFloatTy(Context);
   Type *DoubleTy = Type::getDoubleTy(Context);
 
@@ -219,7 +218,6 @@ TEST(ConstantsTest, AsInstructionsTest) {
   Constant *P0 = ConstantExpr::getPtrToInt(Global, Int32Ty);
   Constant *P1 = ConstantExpr::getUIToFP(P0, FloatTy);
   Constant *P2 = ConstantExpr::getUIToFP(P0, DoubleTy);
-  Constant *P3 = ConstantExpr::getTrunc(P0, Int1Ty);
   Constant *P4 = ConstantExpr::getPtrToInt(Global2, Int32Ty);
   Constant *P5 = ConstantExpr::getUIToFP(P4, FloatTy);
   Constant *P6 = ConstantExpr::getBitCast(P4, FixedVectorType::get(Int16Ty, 2));


        


More information about the llvm-commits mailing list