r215193 - clangAnalysis: Avoid member initializers in TempDtorContext to appease msc17.
NAKAMURA Takumi
geek4civic at gmail.com
Fri Aug 8 02:51:08 PDT 2014
Author: chapuni
Date: Fri Aug 8 04:51:07 2014
New Revision: 215193
URL: http://llvm.org/viewvc/llvm-project?rev=215193&view=rev
Log:
clangAnalysis: Avoid member initializers in TempDtorContext to appease msc17.
Modified:
cfe/trunk/lib/Analysis/CFG.cpp
Modified: cfe/trunk/lib/Analysis/CFG.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFG.cpp?rev=215193&r1=215192&r2=215193&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CFG.cpp (original)
+++ cfe/trunk/lib/Analysis/CFG.cpp Fri Aug 8 04:51:07 2014
@@ -445,10 +445,13 @@ private:
/// if the CXXBindTemporaryExpr was marked executed, and otherwise
/// branches to the stored successor.
struct TempDtorContext {
- TempDtorContext() : KnownExecuted(true) {}
+ TempDtorContext()
+ : IsConditional(false), KnownExecuted(true), Succ(nullptr),
+ TerminatorExpr(nullptr) {}
TempDtorContext(TryResult KnownExecuted)
- : IsConditional(true), KnownExecuted(KnownExecuted) {}
+ : IsConditional(true), KnownExecuted(KnownExecuted), Succ(nullptr),
+ TerminatorExpr(nullptr) {}
/// Returns whether we need to start a new branch for a temporary destructor
/// call. This is the case when the the temporary destructor is
@@ -467,10 +470,10 @@ private:
TerminatorExpr = E;
}
- const bool IsConditional = false;
+ const bool IsConditional;
const TryResult KnownExecuted;
- CFGBlock *Succ = nullptr;
- CXXBindTemporaryExpr *TerminatorExpr = nullptr;
+ CFGBlock *Succ;
+ CXXBindTemporaryExpr *TerminatorExpr;
};
// Visitors to walk an AST and generate destructors of temporaries in
More information about the cfe-commits
mailing list