This patch fixes the following error with MSVC 16.9.2:
llvm/lib/IR/GCStrategy.cpp(35): error C2668: 'llvm::report_fatal_error': ambiguous call to overloaded function
llvm/include/llvm/Support/ErrorHandling.h(75): note: could be 'void llvm::report_fatal_error(const llvm::Twine &,bool)'
llvm/include/llvm/Support/ErrorHandling.h(73): note: or 'void llvm::report_fatal_error(llvm::StringRef,bool)'
llvm/lib/IR/GCStrategy.cpp(35): note: while trying to match the argument list '(const std::string)'
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/IR/GCStrategy.cpp | ||
---|---|---|
38 | Please include the missing header. It is the reason why this error was not caught earlier. |
llvm/lib/IR/GCStrategy.cpp | ||
---|---|---|
38 | Sorry, the last part of my statement is not true. "Twine.h" seems to be transitively included from some other header, but not in all configurations. |
Please include the missing header. It is the reason why this error was not caught earlier.