summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/PassManager.cpp
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
commitb6166b372e9cff274065f074ff4f8114f064d0f5 (patch)
tree21a6b6e428f7c36b9449933efafc9ca44b6d1040 /llvm/lib/VMCore/PassManager.cpp
parentb50e795369059fda30e084d90e9f1c8876c5cc50 (diff)
downloadbcm5719-llvm-b6166b372e9cff274065f074ff4f8114f064d0f5.tar.gz
bcm5719-llvm-b6166b372e9cff274065f074ff4f8114f064d0f5.zip
minor tidying up
llvm-svn: 100702
Diffstat (limited to 'llvm/lib/VMCore/PassManager.cpp')
-rw-r--r--llvm/lib/VMCore/PassManager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/PassManager.cpp b/llvm/lib/VMCore/PassManager.cpp
index 6ca35ac0260..d496bf73fa9 100644
--- a/llvm/lib/VMCore/PassManager.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud