]> granicus.if.org Git - clang/commitdiff
Now the whether adding implicit dtors is controlled by cmd option.
authorZhongxing Xu <xuzhongxing@gmail.com>
Fri, 1 Oct 2010 03:31:06 +0000 (03:31 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Fri, 1 Oct 2010 03:31:06 +0000 (03:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115275 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFG.cpp

index 278df139f609d4abbd7e665ebb94bdac2c91b1ea..047568a32a85ebfa06c0b1c98536a940e844acf7 100644 (file)
@@ -396,8 +396,6 @@ CFG* CFGBuilder::buildCFG(const Decl *D, Stmt* Statement, ASTContext* C,
     return NULL;
 
   BuildOpts = BO;
-  if (!C->getLangOptions().CPlusPlus)
-    BuildOpts.AddImplicitDtors = false;
 
   // Create an empty block that will serve as the exit block for the CFG.  Since
   // this is the first block added to the CFG, it will be implicitly registered