Skip to content

Commit e8f7c3c

Browse files
author
Zhang Yan
committed
Merge remote-tracking branch 'origin/main' into zhangyan/fix_gc_check
2 parents c76eace + 2e88473 commit e8f7c3c

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 = std::array<std::string, 1>({"bf16"});
59+
std::array<std::string, 1> typeStr = {"bf16"};
60+
options.sourceTypeStrs = typeStr;
6061
options.targetTypeStr = "f32";
6162
pm.addNestedPass<func::FuncOp>(
6263
arith::createArithEmulateUnsupportedFloats(options));

0 commit comments

Comments
 (0)