From: Zhongxing Xu Date: Fri, 1 Oct 2010 03:31:06 +0000 (+0000) Subject: Now the whether adding implicit dtors is controlled by cmd option. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a1a5d8e75076470c35fb069b98bf2b01904b5960;p=clang Now the whether adding implicit dtors is controlled by cmd option. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115275 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/CFG.cpp b/lib/Analysis/CFG.cpp index 278df139f6..047568a32a 100644 --- a/lib/Analysis/CFG.cpp +++ b/lib/Analysis/CFG.cpp @@ -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