r236256 - PR19691: initialize MacroDirective::DefInfo::IsPublic member in "invalid" state.
Richard Smith
richard-llvm at metafoo.co.uk
Thu Apr 30 13:53:28 PDT 2015
Author: rsmith
Date: Thu Apr 30 15:53:28 2015
New Revision: 236256
URL: http://llvm.org/viewvc/llvm-project?rev=236256&view=rev
Log:
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.
Modified:
cfe/trunk/include/clang/Lex/MacroInfo.h
Modified: cfe/trunk/include/clang/Lex/MacroInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/MacroInfo.h?rev=236256&r1=236255&r2=236256&view=diff
==============================================================================
--- cfe/trunk/include/clang/Lex/MacroInfo.h (original)
+++ cfe/trunk/include/clang/Lex/MacroInfo.h Thu Apr 30 15:53:28 2015
@@ -364,7 +364,7 @@ public:
bool IsPublic;
public:
- DefInfo() : DefDirective(nullptr) { }
+ DefInfo() : DefDirective(nullptr), IsPublic(true) { }
DefInfo(DefMacroDirective *DefDirective, SourceLocation UndefLoc,
bool isPublic)
More information about the cfe-commits
mailing list