From: Matt Beaumont-Gay Date: Wed, 14 Mar 2012 23:12:42 +0000 (+0000) Subject: '#if 0' out a variable that's only used in other preprocessor-disabled code. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59e7f4e6e69872d2fc4031f66b47b8ad64967e51;p=clang '#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.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152749 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp b/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp index 0e774257d5..99618cb188 100644 --- a/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp +++ b/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()))