diff options
Diffstat (limited to 'llvm/lib/IR/GCStrategy.cpp')
| -rw-r--r-- | llvm/lib/IR/GCStrategy.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/IR/GCStrategy.cpp b/llvm/lib/IR/GCStrategy.cpp index f3bc5b74f8fd..5833dc26c57e 100644 --- a/llvm/lib/IR/GCStrategy.cpp +++ b/llvm/lib/IR/GCStrategy.cpp @@ -12,6 +12,7 @@ //===----------------------------------------------------------------------===// #include "llvm/IR/GCStrategy.h" +#include "llvm/ADT/Twine.h" using namespace llvm; @@ -32,7 +33,7 @@ std::unique_ptr<GCStrategy> llvm::getGCStrategy(const StringRef Name) { 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())); } |
