summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2012-03-14 23:12:42 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2012-03-14 23:12:42 +0000
commitbe84d8590523a3c7b79c248ce3ad2933191deb5a (patch)
tree6416cb4483e687233bafa96d7654113e73320f20
parent532fb8131bfbacd60130c3ddcce9051b2674845c (diff)
downloadbcm5719-llvm-be84d8590523a3c7b79c248ce3ad2933191deb5a.tar.gz
bcm5719-llvm-be84d8590523a3c7b79c248ce3ad2933191deb5a.zip
'#if 0' out a variable that's only used in other preprocessor-disabled code.
(Why are we keeping all of this code around anyway? Say the word and I'll start swinging the delete hammer.) llvm-svn: 152749
-rw-r--r--clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
index 0e774257d52..99618cb1888 100644
--- a/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
+++ b/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
@@ -64,8 +64,10 @@ void ExprEngine::VisitCXXConstructExpr(const CXXConstructExpr *E,
ExplodedNode *Pred,
ExplodedNodeSet &destNodes) {
+#if 0
const CXXConstructorDecl *CD = E->getConstructor();
assert(CD);
+#endif
#if 0
if (!(CD->doesThisDeclarationHaveABody() && AMgr.shouldInlineCall()))
OpenPOWER on IntegriCloud