From 0df401d90d4c4c3285410121161a7481fd35ddbc Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 30 Apr 2015 20:53:28 +0000 Subject: [PATCH] PR19691: initialize MacroDirective::DefInfo::IsPublic member in "invalid" state. No functionality change; no-one inspects this field yet, and probably no-one will ever inspect it in the "invalid" state, but ubsan could be unhappy about this if such a DefInfo is copied. llvm-svn: 236256 --- clang/include/clang/Lex/MacroInfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/include/clang/Lex/MacroInfo.h b/clang/include/clang/Lex/MacroInfo.h index c3a9472..7de9955 100644 --- a/clang/include/clang/Lex/MacroInfo.h +++ b/clang/include/clang/Lex/MacroInfo.h @@ -364,7 +364,7 @@ public: bool IsPublic; public: - DefInfo() : DefDirective(nullptr) { } + DefInfo() : DefDirective(nullptr), IsPublic(true) { } DefInfo(DefMacroDirective *DefDirective, SourceLocation UndefLoc, bool isPublic) -- 2.7.4