Add an assert to get information on buildbot failure.
llvm-svn: 236181
This commit is contained in:
parent
10b3acf215
commit
f5ec2acca9
|
@ -627,6 +627,7 @@ bool Preprocessor::HandleIdentifier(Token &Identifier) {
|
|||
// If this is a macro to be expanded, do it.
|
||||
if (MacroDefinition MD = getMacroDefinition(&II)) {
|
||||
auto *MI = MD.getMacroInfo();
|
||||
assert(MI && "macro definition with no macro info?");
|
||||
if (!DisableMacroExpansion) {
|
||||
if (!Identifier.isExpandDisabled() && MI->isEnabled()) {
|
||||
// C99 6.10.3p10: If the preprocessing token immediately after the
|
||||
|
|
Loading…
Reference in New Issue