minor tidying up
authorChris Lattner <sabre@nondot.org>
Wed, 7 Apr 2010 22:41:29 +0000 (22:41 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 7 Apr 2010 22:41:29 +0000 (22:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100702 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/ErrorHandling.h
lib/VMCore/PassManager.cpp

index 4d24ada48ebdcdcbb7fe42f2a3f56e3dfb9bbc2c..2232578016106d5acfde8a68c63b76af094dc4a5 100644 (file)
@@ -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
index 6ca35ac0260f686337086861d6dcccc9a5e63f9b..d496bf73fa9062551cc32c5dfde1529d3ee50913 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)) {
+    if (F.Materialize(&errstr))
       llvm_report_error("Error reading bitcode file: " + errstr);
-    }
   }
   return FPM->run(F);
 }