Skip to content

Commit 5f9092a

Browse files
authored
[MLIR][NFC] Fix ambiguity between const char* and Twine (#175600)
This only shows up once Twine gets included, e.g. through a pre-compiled header. Avoid this ambiguity with an explicit cast.
1 parent 8821654 commit 5f9092a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Support/TypeID.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ struct ImplicitTypeIDRegistry {
4949
"`MLIR_DEFINE_EXPLICIT_TYPE_ID` or "
5050
"`MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID`.\n";
5151
}
52-
llvm::report_fatal_error(errorStr);
52+
llvm::report_fatal_error(llvm::StringRef(errorStr));
5353
}
5454
#endif
5555

0 commit comments

Comments
 (0)