[fir] Remove unused function in CharacterTest

This commit is contained in:
Valentin Clement 2021-10-22 00:25:59 +02:00
parent ff37b1105d
commit 0bf230d422
No known key found for this signature in database
GPG Key ID: 086D54783C928776
1 changed files with 0 additions and 8 deletions

View File

@ -41,14 +41,6 @@ public:
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();