summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/IRForTarget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Expression/IRForTarget.cpp')
-rw-r--r--lldb/source/Expression/IRForTarget.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/source/Expression/IRForTarget.cpp b/lldb/source/Expression/IRForTarget.cpp
index 967b2c4d861..ef76b9da720 100644
--- a/lldb/source/Expression/IRForTarget.cpp
+++ b/lldb/source/Expression/IRForTarget.cpp
@@ -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;
OpenPOWER on IntegriCloud