r236191 - Fix use of uninitialized variable, found by ubsan selfhost.

Richard Smith richard-llvm at metafoo.co.uk
Wed Apr 29 17:57:09 PDT 2015


Author: rsmith
Date: Wed Apr 29 19:57:08 2015
New Revision: 236191

URL: http://llvm.org/viewvc/llvm-project?rev=236191&view=rev
Log:
Fix use of uninitialized variable, found by ubsan selfhost.

Modified:
    cfe/trunk/include/clang/Lex/Preprocessor.h

Modified: cfe/trunk/include/clang/Lex/Preprocessor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/Preprocessor.h?rev=236191&r1=236190&r2=236191&view=diff
==============================================================================
--- cfe/trunk/include/clang/Lex/Preprocessor.h (original)
+++ cfe/trunk/include/clang/Lex/Preprocessor.h Wed Apr 29 19:57:08 2015
@@ -367,7 +367,7 @@ class Preprocessor : public RefCountedBa
   /// 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;





More information about the cfe-commits mailing list