summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CFG.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2014-08-08 09:51:07 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2014-08-08 09:51:07 +0000
commit6b0fe34cc5b89e2ed64efbb12385aad25d77ebfa (patch)
tree523e66946e306ff5fa75c5fe3df4e286cac4f110 /clang/lib/Analysis/CFG.cpp
parent05cb0bb55e1f8fedffe2f8bc219035a61e7ead16 (diff)
downloadbcm5719-llvm-6b0fe34cc5b89e2ed64efbb12385aad25d77ebfa.tar.gz
bcm5719-llvm-6b0fe34cc5b89e2ed64efbb12385aad25d77ebfa.zip
clangAnalysis: Avoid member initializers in TempDtorContext to appease msc17.
llvm-svn: 215193
Diffstat (limited to 'clang/lib/Analysis/CFG.cpp')
-rw-r--r--clang/lib/Analysis/CFG.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/clang/lib/Analysis/CFG.cpp b/clang/lib/Analysis/CFG.cpp
index 49f35ef10f1..4a0d4e8e467 100644
--- a/clang/lib/Analysis/CFG.cpp
+++ b/clang/lib/Analysis/CFG.cpp
@@ -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
OpenPOWER on IntegriCloud