Missing “if (log)” on a log printf.

llvm-svn: 168602
This commit is contained in:
Jim Ingham 2012-11-26 19:54:04 +00:00
parent caf5acfd14
commit d77557d0d9
1 changed files with 4 additions and 3 deletions

View File

@ -2679,9 +2679,10 @@ IRForTarget::StripAllGVs (Module &llvm_module)
GlobalValue::use_iterator ui = global_var->use_begin();
log->Printf("Couldn't remove %s because of %s",
PrintValue(global_var).c_str(),
PrintValue(*ui).c_str());
if (log)
log->Printf("Couldn't remove %s because of %s",
PrintValue(global_var).c_str(),
PrintValue(*ui).c_str());
}
return true;