[PATCH] D130407: [IR] Fixed ambiguous call to llvm::report_fatal_error
Dmitry Vassiliev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 22 21:08:08 PDT 2022
slydiman updated this revision to Diff 447035.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130407/new/
https://reviews.llvm.org/D130407
Files:
llvm/lib/IR/GCStrategy.cpp
Index: llvm/lib/IR/GCStrategy.cpp
===================================================================
--- llvm/lib/IR/GCStrategy.cpp
+++ llvm/lib/IR/GCStrategy.cpp
@@ -11,6 +11,7 @@
//
//===----------------------------------------------------------------------===//
+#include "llvm/ADT/Twine.h"
#include "llvm/IR/GCStrategy.h"
using namespace llvm;
@@ -32,7 +33,7 @@
const std::string error =
std::string("unsupported GC: ") + Name.str() +
" (did you remember to link and initialize the library?)";
- report_fatal_error(error);
+ report_fatal_error(Twine(error));
} else
- report_fatal_error(std::string("unsupported GC: ") + Name.str());
+ report_fatal_error(Twine(std::string("unsupported GC: ") + Name.str()));
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130407.447035.patch
Type: text/x-patch
Size: 763 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220723/e4973319/attachment.bin>
More information about the llvm-commits
mailing list