[prev in list] [next in list] [prev in thread] [next in thread]
List: cfe-commits
Subject: r236256 - PR19691: initialize MacroDirective::DefInfo::IsPublic member in "invalid" state.
From: Richard Smith <richard-llvm () metafoo ! co ! uk>
Date: 2015-04-30 20:53:28
Message-ID: 20150430205328.CACA42A6C02F () llvm ! org
[Download RAW message or body]
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)
_______________________________________________
cfe-commits mailing list
cfe-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic