瀏覽代碼

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
Richard Smith 10 年之前
父節點
當前提交
9d45e721ce
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lib/Lex/Preprocessor.cpp

+ 1 - 0
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