]> granicus.if.org Git - clang/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236191 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/Preprocessor.h

index 09856529b7c7c79761f5420d95426562b868463e..8322e00260a494eee39d459998cda153a3cde581 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;