[llvm-commits] [llvm] r100702 - in /llvm/trunk: include/llvm/Support/ErrorHandling.h lib/VMCore/PassManager.cpp

Chris Lattner sabre at nondot.org
Wed Apr 7 15:41:29 PDT 2010


Author: lattner
Date: Wed Apr  7 17:41:29 2010
New Revision: 100702

URL: http://llvm.org/viewvc/llvm-project?rev=100702&view=rev
Log:
minor tidying up

Modified:
    llvm/trunk/include/llvm/Support/ErrorHandling.h
    llvm/trunk/lib/VMCore/PassManager.cpp

Modified: llvm/trunk/include/llvm/Support/ErrorHandling.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ErrorHandling.h?rev=100702&r1=100701&r2=100702&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/ErrorHandling.h (original)
+++ llvm/trunk/include/llvm/Support/ErrorHandling.h Wed Apr  7 17:41:29 2010
@@ -25,7 +25,7 @@
   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

Modified: llvm/trunk/lib/VMCore/PassManager.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/PassManager.cpp?rev=100702&r1=100701&r2=100702&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/PassManager.cpp (original)
+++ llvm/trunk/lib/VMCore/PassManager.cpp Wed Apr  7 17:41:29 2010
@@ -1293,9 +1293,8 @@
 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);
 }





More information about the llvm-commits mailing list