aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-07 22:41:29 +0000
committerChris Lattner <sabre@nondot.org>2010-04-07 22:41:29 +0000
commitf88c856a471dd838607293f66b533374d7637fd1 (patch)
tree5bcff78521cf636e1c398525827143355a4183cb
parent00d139064e525221fdf0ff00d001ce8b584d69d6 (diff)
minor tidying up
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100702 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/ErrorHandling.h2
-rw-r--r--lib/VMCore/PassManager.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/Support/ErrorHandling.h b/include/llvm/Support/ErrorHandling.h
index 4d24ada48e..2232578016 100644
--- a/include/llvm/Support/ErrorHandling.h
+++ b/include/llvm/Support/ErrorHandling.h
@@ -25,7 +25,7 @@ namespace llvm {
typedef void (*llvm_error_handler_t)(void *user_data,
const std::string& reason);
- /// llvm_instal_error_handler - Installs a new error handler to be used
+ /// llvm_install_error_handler - Installs a new error handler to be used
/// whenever a serious (non-recoverable) error is encountered by LLVM.
///
/// If you are using llvm_start_multithreaded, you should register the handler
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp
index 6ca35ac026..d496bf73fa 100644
--- a/lib/VMCore/PassManager.cpp
+++ b/lib/VMCore/PassManager.cpp
@@ -1293,9 +1293,8 @@ void FunctionPassManager::add(Pass *P) {
bool FunctionPassManager::run(Function &F) {
if (F.isMaterializable()) {
std::string errstr;
- if (F.Materialize(&errstr)) {
+ if (F.Materialize(&errstr))
llvm_report_error("Error reading bitcode file: " + errstr);
- }
}
return FPM->run(F);
}