minor tidying up

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100702 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-04-07 22:41:29 +00:00
parent 00d139064e
commit f88c856a47
2 changed files with 2 additions and 3 deletions

View 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

View 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);
}