Skip to content

Commit b36b355

Browse files
authored
Fix build failure on GCC (#20231)
Use function overload instead of explicit specialization to fix GCC error: ``` /__w/iree/iree/compiler/src/iree/compiler/Utils/OptionUtils.h:58:13: error: explicit specialization in non-namespace scope 'struct mlir::iree_compiler::opt_initializer<Ty>' 58 | template <> | ``` Signed-off-by: Ian Wood <[email protected]>
1 parent cee9306 commit b36b355

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/src/iree/compiler/Utils/OptionUtils.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ struct opt_initializer {
5555
os << val;
5656
}
5757

58-
template <>
59-
void prettyPrint<bool>(llvm::raw_ostream &os, bool &val) {
58+
void prettyPrint(llvm::raw_ostream &os, bool &val) {
6059
os << (val ? "true" : "false");
6160
}
6261
};

0 commit comments

Comments
 (0)