[mlir] Fix asan leak in BlockAndValueMapping test

Operations were being created without being erased.
This commit is contained in:
River Riddle 2022-09-09 14:57:04 -07:00
parent b6a32d9475
commit af5d2df378
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,9 @@ TEST(BlockAndValueMapping, TypedValue) {
OpBuilder builder(&context);
Location loc = builder.getUnknownLoc();
Block block;
builder.setInsertionPointToEnd(&block);
Value i64Val = builder.create<test::TestOpConstant>(
loc, builder.getI64Type(), builder.getI64IntegerAttr(0));
Value f64Val = builder.create<test::TestOpConstant>(