diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-11-13 02:48:51 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-11-13 02:48:51 +0000 |
commit | afd693cff38ea76188f8f895c75fdf24c90c606a (patch) | |
tree | f4782fc31983fb94a76a92ba73abaca1d262c3cb /lib/Support | |
parent | 5b1d431217038f5169e8597f2bf4ce5b2897d95f (diff) | |
download | external_llvm-afd693cff38ea76188f8f895c75fdf24c90c606a.zip external_llvm-afd693cff38ea76188f8f895c75fdf24c90c606a.tar.gz external_llvm-afd693cff38ea76188f8f895c75fdf24c90c606a.tar.bz2 |
report_fatal_error: Simplify a possible ambiguity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118972 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/ErrorHandling.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Support/ErrorHandling.cpp b/lib/Support/ErrorHandling.cpp index 839c405..66b2c83 100644 --- a/lib/Support/ErrorHandling.cpp +++ b/lib/Support/ErrorHandling.cpp @@ -58,6 +58,10 @@ void llvm::report_fatal_error(const std::string &Reason) { report_fatal_error(Twine(Reason)); } +void llvm::report_fatal_error(StringRef Reason) { + report_fatal_error(Twine(Reason)); +} + void llvm::report_fatal_error(const Twine &Reason) { if (ErrorHandler) { ErrorHandler(ErrorHandlerUserData, Reason.str()); |