From: Richard Smith Date: Thu, 30 Apr 2015 20:53:28 +0000 (+0000) Subject: PR19691: initialize MacroDirective::DefInfo::IsPublic member in "invalid" state. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=458c008ad5843379fea4cebff0981067e6f5b510;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236256 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Lex/MacroInfo.h b/include/clang/Lex/MacroInfo.h index c3a9472036..7de995589b 100644 --- a/include/clang/Lex/MacroInfo.h +++ b/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)