From 9d45e721cefb8f2146aaa96cd994e5f549825e13 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 29 Apr 2015 23:40:48 +0000 Subject: [PATCH] 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 --- lib/Lex/Preprocessor.cpp | 1 + 1 file changed, 1 insertion(+) 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 -- 2.50.1