diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-04-08 10:44:28 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-04-08 10:44:28 +0000 |
commit | 1bd7335a17010bd4d8f86736cf73cac9f3fb80a5 (patch) | |
tree | 34b65fa28c7a4ead9ff2068757fbec6e802ccc59 /lib/VMCore/PassManager.cpp | |
parent | 127dc5e615390609540b07ce262ac368278ddb88 (diff) | |
download | external_llvm-1bd7335a17010bd4d8f86736cf73cac9f3fb80a5.zip external_llvm-1bd7335a17010bd4d8f86736cf73cac9f3fb80a5.tar.gz external_llvm-1bd7335a17010bd4d8f86736cf73cac9f3fb80a5.tar.bz2 |
Use twines to simplify calls to report_fatal_error. For code size and readability.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100756 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/PassManager.cpp')
-rw-r--r-- | lib/VMCore/PassManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index 003ff59..b28fdeb 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -1294,7 +1294,7 @@ bool FunctionPassManager::run(Function &F) { if (F.isMaterializable()) { std::string errstr; if (F.Materialize(&errstr)) - report_fatal_error("Error reading bitcode file: " + errstr); + report_fatal_error("Error reading bitcode file: " + Twine(errstr)); } return FPM->run(F); } |