Skip to content

Commit 1b1ebf2

Browse files
author
Ivy Zhang
authored
[Transform][BUG] remove static when forward sourceTypeStrs (#162)
* fix gc-check fail on create arith pass * update * remove static
1 parent 2e88473 commit 1b1ebf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/gc/Transforms/Pipeline.cpp

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

0 commit comments

Comments
 (0)