From: NAKAMURA Takumi Date: Wed, 16 Apr 2014 01:22:22 +0000 (+0000) Subject: threadSafety::SExprBuilder::BlockInfo: Non-static member initializer is unavailable... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=54e0e5a4fffd3e75d2336f7ae1810689dc0b997b;p=clang threadSafety::SExprBuilder::BlockInfo: Non-static member initializer is unavailable. Use default constructor instead. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206347 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Analysis/Analyses/ThreadSafetyCommon.h b/include/clang/Analysis/Analyses/ThreadSafetyCommon.h index 83a00d3806..04207dc9c5 100644 --- a/include/clang/Analysis/Analyses/ThreadSafetyCommon.h +++ b/include/clang/Analysis/Analyses/ThreadSafetyCommon.h @@ -262,8 +262,9 @@ private: struct BlockInfo { NameVarMap ExitMap; - bool HasBackEdges = false; - unsigned SuccessorsToProcess = 0; + bool HasBackEdges; + unsigned SuccessorsToProcess; + BlockInfo() : HasBackEdges(false), SuccessorsToProcess(0) {} }; // We implement the CFGVisitor API