[flang-commits] [flang] ce6ca8e - [flang] D123388 fix - remove unused variable from test

Jean Perier via flang-commits flang-commits at lists.llvm.org
Mon Apr 11 03:00:45 PDT 2022


Author: Jean Perier
Date: 2022-04-11T12:00:20+02:00
New Revision: ce6ca8e71e29281d2ec03386e16f2c6463f143ed

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

LOG: [flang] D123388 fix - remove unused variable from test

Added: 
    

Modified: 
    flang/unittests/Optimizer/Builder/Runtime/CommandTest.cpp

Removed: 
    


################################################################################
diff  --git a/flang/unittests/Optimizer/Builder/Runtime/CommandTest.cpp b/flang/unittests/Optimizer/Builder/Runtime/CommandTest.cpp
index 577e525896645..856e2022b93e8 100644
--- a/flang/unittests/Optimizer/Builder/Runtime/CommandTest.cpp
+++ b/flang/unittests/Optimizer/Builder/Runtime/CommandTest.cpp
@@ -42,7 +42,6 @@ TEST_F(RuntimeCallTest, genArgumentLen) {
 
 TEST_F(RuntimeCallTest, genEnvVariableValue) {
   mlir::Location loc = firBuilder->getUnknownLoc();
-  mlir::Type intTy = firBuilder->getDefaultIntegerType();
   mlir::Type charTy = fir::BoxType::get(firBuilder->getNoneType());
   mlir::Value name = firBuilder->create<fir::UndefOp>(loc, charTy);
   mlir::Value value = firBuilder->create<fir::UndefOp>(loc, charTy);
@@ -56,7 +55,6 @@ TEST_F(RuntimeCallTest, genEnvVariableValue) {
 
 TEST_F(RuntimeCallTest, genEnvVariableLength) {
   mlir::Location loc = firBuilder->getUnknownLoc();
-  mlir::Type intTy = firBuilder->getDefaultIntegerType();
   mlir::Type charTy = fir::BoxType::get(firBuilder->getNoneType());
   mlir::Value name = firBuilder->create<fir::UndefOp>(loc, charTy);
   mlir::Value trimName = firBuilder->create<fir::UndefOp>(loc, i1Ty);


        


More information about the flang-commits mailing list