]> granicus.if.org Git - clang/commitdiff
'#if 0' out a variable that's only used in other preprocessor-disabled code.
authorMatt Beaumont-Gay <matthewbg@google.com>
Wed, 14 Mar 2012 23:12:42 +0000 (23:12 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Wed, 14 Mar 2012 23:12:42 +0000 (23:12 +0000)
(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

lib/StaticAnalyzer/Core/ExprEngineCXX.cpp

index 0e774257d52eb4145b743e223e1f22cd4d97fef4..99618cb18881bcbe5b2403c2268473f5e2f3d73e 100644 (file)
@@ -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()))