Skip to content

Commit c76eace

Browse files
author
Zhang Yan
committed
remove static
1 parent 9b15f74 commit c76eace

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/gc/Transforms/Pipeline.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ 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+
options.sourceTypeStrs = std::array<std::string, 1>({"bf16"});
6160
options.targetTypeStr = "f32";
6261
pm.addNestedPass<func::FuncOp>(
6362
arith::createArithEmulateUnsupportedFloats(options));

0 commit comments

Comments
 (0)