Move a bunch of methods from CallSite to CallSiteBase, so that they can
[oota-llvm.git] / lib / VMCore / PassManager.cpp
index 6ca35ac0260f686337086861d6dcccc9a5e63f9b..b28fdebd523205e6987587469f6c4f080dff44d0 100644 (file)
@@ -1293,9 +1293,8 @@ void FunctionPassManager::add(Pass *P) {
 bool FunctionPassManager::run(Function &F) {
   if (F.isMaterializable()) {
     std::string errstr;
-    if (F.Materialize(&errstr)) {
-      llvm_report_error("Error reading bitcode file: " + errstr);
-    }
+    if (F.Materialize(&errstr))
+      report_fatal_error("Error reading bitcode file: " + Twine(errstr));
   }
   return FPM->run(F);
 }