[llvm] r212212 - Remove non-static field initializer to appease MSVC

Alexey Samsonov vonosmas at gmail.com
Wed Jul 2 13:25:42 PDT 2014


Author: samsonov
Date: Wed Jul  2 15:25:42 2014
New Revision: 212212

URL: http://llvm.org/viewvc/llvm-project?rev=212212&view=rev
Log:
Remove non-static field initializer to appease MSVC

Modified:
    llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Modified: llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp?rev=212212&r1=212211&r2=212212&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp Wed Jul  2 15:25:42 2014
@@ -219,6 +219,7 @@ namespace {
 /// Frontend-provided metadata for global variables.
 class GlobalsMetadata {
  public:
+  GlobalsMetadata() : inited_(false) {}
   void init(Module& M) {
     assert(!inited_);
     inited_ = true;
@@ -277,7 +278,7 @@ class GlobalsMetadata {
   }
 
  private:
-  bool inited_ = false;
+  bool inited_;
   DenseMap<GlobalVariable*, GlobalVariable*> SourceLocation;
   DenseSet<GlobalVariable*> DynInitGlobals;
   DenseSet<GlobalVariable*> BlacklistedGlobals;





More information about the llvm-commits mailing list