Fix use of uninitialized variable, found by ubsan selfhost.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 30 Apr 2015 00:57:08 +0000 (00:57 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 30 Apr 2015 00:57:08 +0000 (00:57 +0000)
llvm-svn: 236191

clang/include/clang/Lex/Preprocessor.h

index 0985652..8322e00 100644 (file)
@@ -367,7 +367,7 @@ class Preprocessor : public RefCountedBase<Preprocessor> {
   /// Information about a name that has been used to define a module macro.
   struct ModuleMacroInfo {
     ModuleMacroInfo(MacroDirective *MD)
-        : MD(MD), ActiveModuleMacrosGeneration(0) {}
+        : MD(MD), ActiveModuleMacrosGeneration(0), IsAmbiguous(false) {}
 
     /// The most recent macro directive for this identifier.
     MacroDirective *MD;