Remove non-static field initializer to appease MSVC
authorAlexey Samsonov <vonosmas@gmail.com>
Wed, 2 Jul 2014 20:25:42 +0000 (20:25 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Wed, 2 Jul 2014 20:25:42 +0000 (20:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212212 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Instrumentation/AddressSanitizer.cpp

index 290efe2ec0005a7d3ff1c01f136537e5a1340125..bed23b8cf375ad989435c35860e5cb0574ec0cf3 100644 (file)
@@ -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;