[PATCH] D130407: [IR] Fixed ambiguous call to llvm::report_fatal_error

Sergei Barannikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 22 18:44:04 PDT 2022


barannikov88 added inline comments.


================
Comment at: llvm/lib/IR/GCStrategy.cpp:37
   } else
-    report_fatal_error(std::string("unsupported GC: ") + Name.str());
+    report_fatal_error(Twine(std::string("unsupported GC: ") + Name.str()));
 }
----------------
barannikov88 wrote:
> Please include the missing header. It is the reason why this error was not caught earlier.
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.
"Twine.h" should be included now, because the class is directly used.



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130407/new/

https://reviews.llvm.org/D130407



More information about the llvm-commits mailing list