From: Richard Smith Date: Wed, 29 Apr 2015 23:40:48 +0000 (+0000) Subject: Add an assert to get information on buildbot failure. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d45e721cefb8f2146aaa96cd994e5f549825e13;p=clang Add an assert to get information on buildbot failure. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236181 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index cd00be8ada..231720b8db 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/lib/Lex/Preprocessor.cpp @@ -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