From 7acee920afdf090dc0580f73e7c7c4da27e8a3c6 Mon Sep 17 00:00:00 2001
From: Richard Smith <richard-llvm@metafoo.co.uk>
Date: Thu, 30 Apr 2015 00:57:08 +0000
Subject: [PATCH] Fix use of uninitialized variable, found by ubsan selfhost.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236191 91177308-0d34-0410-b5e6-96231b3b80d8
---
 include/clang/Lex/Preprocessor.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h
index 09856529b7c..8322e00260a 100644
--- a/include/clang/Lex/Preprocessor.h
+++ b/include/clang/Lex/Preprocessor.h
@@ -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;
-- 
GitLab