forked from OSchip/llvm-project
[mlir] Fix asan leak in BlockAndValueMapping test
Operations were being created without being erased.
This commit is contained in:
parent
b6a32d9475
commit
af5d2df378
|
@ -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>(
|
||||
|
|
Loading…
Reference in New Issue