Skip to content

Commit 2e88473

Browse files
author
Ivy Zhang
authored
[Transform][BUG] fix gc-check fail on creating arith pass (#157)
* fix gc-check fail on create arith pass * update
1 parent 87b8eac commit 2e88473

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/gc/Transforms/Pipeline.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ void populateVectorPasses(mlir::PassManager &pm) {
5656
pm.addNestedPass<func::FuncOp>(math::createMathLegalizeToF32());
5757
// sourceTypeStrs can be extended
5858
arith::ArithEmulateUnsupportedFloatsOptions options;
59-
options.sourceTypeStrs = {"bf16"};
59+
const static std::string strType = "bf16";
60+
options.sourceTypeStrs = {&strType, 1};
6061
options.targetTypeStr = "f32";
6162
pm.addNestedPass<func::FuncOp>(
6263
arith::createArithEmulateUnsupportedFloats(options));

0 commit comments

Comments
 (0)