[flang-commits] [flang] 0bf230d - [fir] Remove unused function in CharacterTest

Valentin Clement via flang-commits flang-commits at lists.llvm.org
Thu Oct 21 15:26:19 PDT 2021


Author: Valentin Clement
Date: 2021-10-22T00:25:59+02:00
New Revision: 0bf230d4220660af8b2667506f8905df2f716bdf

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

LOG: [fir] Remove unused function in CharacterTest

Added: 
    

Modified: 
    flang/unittests/Optimizer/Builder/CharacterTest.cpp

Removed: 
    


################################################################################
diff  --git a/flang/unittests/Optimizer/Builder/CharacterTest.cpp b/flang/unittests/Optimizer/Builder/CharacterTest.cpp
index 64daf9494f69..7cf15b0365f7 100644
--- a/flang/unittests/Optimizer/Builder/CharacterTest.cpp
+++ b/flang/unittests/Optimizer/Builder/CharacterTest.cpp
@@ -41,14 +41,6 @@ struct CharacterTest : public testing::Test {
   std::unique_ptr<fir::FirOpBuilder> firBuilder;
 };
 
-static void checkIntegerConstant(mlir::Value value, mlir::Type ty, int64_t v) {
-  EXPECT_TRUE(mlir::isa<ConstantOp>(value.getDefiningOp()));
-  auto cstOp = dyn_cast<ConstantOp>(value.getDefiningOp());
-  EXPECT_EQ(ty, cstOp.getType());
-  auto valueAttr = cstOp.getValue().dyn_cast_or_null<IntegerAttr>();
-  EXPECT_EQ(v, valueAttr.getInt());
-}
-
 TEST_F(CharacterTest, smallUtilityFunctions) {
   auto builder = getBuilder();
   auto loc = builder.getUnknownLoc();


        


More information about the flang-commits mailing list