summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/IRDynamicChecks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Expression/IRDynamicChecks.cpp')
-rw-r--r--lldb/source/Expression/IRDynamicChecks.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Expression/IRDynamicChecks.cpp b/lldb/source/Expression/IRDynamicChecks.cpp
index 8be236191e7..a59ac644f84 100644
--- a/lldb/source/Expression/IRDynamicChecks.cpp
+++ b/lldb/source/Expression/IRDynamicChecks.cpp
@@ -487,8 +487,8 @@ IRDynamicChecks::runOnModule(llvm::Module &M)
if (!ooc.Instrument())
return false;
-
- if (log)
+
+ if (log && log->GetVerbose())
{
std::string s;
raw_string_ostream oss(s);
@@ -497,7 +497,7 @@ IRDynamicChecks::runOnModule(llvm::Module &M)
oss.flush();
- log->Printf("Module after dynamic checks: \n%s", s.c_str());
+ log->Printf ("Module after dynamic checks: \n%s", s.c_str());
}
return true;
OpenPOWER on IntegriCloud