summaryrefslogtreecommitdiffstats
path: root/clang/Analysis/GRSimpleVals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/Analysis/GRSimpleVals.cpp')
-rw-r--r--clang/Analysis/GRSimpleVals.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/Analysis/GRSimpleVals.cpp b/clang/Analysis/GRSimpleVals.cpp
index 1e438ee5b3d..e856c3e5d08 100644
--- a/clang/Analysis/GRSimpleVals.cpp
+++ b/clang/Analysis/GRSimpleVals.cpp
@@ -20,7 +20,7 @@ using namespace clang;
namespace clang {
void RunGRSimpleVals(CFG& cfg, FunctionDecl& FD, ASTContext& Ctx,
- Diagnostic& Diag) {
+ Diagnostic& Diag, bool Visualize) {
if (Diag.hasErrorOccurred())
return;
@@ -45,7 +45,7 @@ namespace clang {
}
#ifndef NDEBUG
- CheckerState->ViewGraph();
+ if (Visualize) CheckerState->ViewGraph();
#endif
}
} // end clang namespace
OpenPOWER on IntegriCloud