r206347 - threadSafety::SExprBuilder::BlockInfo: Non-static member initializer is unavailable. Use default constructor instead.

NAKAMURA Takumi geek4civic at gmail.com
Tue Apr 15 18:22:22 PDT 2014


Author: chapuni
Date: Tue Apr 15 20:22:22 2014
New Revision: 206347

URL: http://llvm.org/viewvc/llvm-project?rev=206347&view=rev
Log:
threadSafety::SExprBuilder::BlockInfo: Non-static member initializer is unavailable. Use default constructor instead.

Modified:
    cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyCommon.h

Modified: cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyCommon.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyCommon.h?rev=206347&r1=206346&r2=206347&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyCommon.h (original)
+++ cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyCommon.h Tue Apr 15 20:22:22 2014
@@ -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





More information about the cfe-commits mailing list