[cfe-commits] r59695 - /cfe/trunk/lib/Lex/PPLexerChange.cpp

Ted Kremenek kremenek at apple.com
Wed Nov 19 17:52:55 PST 2008


Author: kremenek
Date: Wed Nov 19 19:52:55 2008
New Revision: 59695

URL: http://llvm.org/viewvc/llvm-project?rev=59695&view=rev
Log:
Make FIXME a hard assertion.

Modified:
    cfe/trunk/lib/Lex/PPLexerChange.cpp

Modified: cfe/trunk/lib/Lex/PPLexerChange.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPLexerChange.cpp?rev=59695&r1=59694&r2=59695&view=diff

==============================================================================
--- cfe/trunk/lib/Lex/PPLexerChange.cpp (original)
+++ cfe/trunk/lib/Lex/PPLexerChange.cpp Wed Nov 19 19:52:55 2008
@@ -173,10 +173,14 @@
       SrcMgr::CharacteristicKind FileType =
         SourceMgr.getFileCharacteristic(CurPPLexer->getFileID());
       
-      if (CurLexer)
+      if (CurLexer) {
+        // FIXME: Should we use the location of 'Result'?
         Callbacks->FileChanged(CurLexer->getSourceLocation(CurLexer->BufferPtr),
                                PPCallbacks::ExitFile, FileType);
-      // FIXME: Add callback support for PTHLexer.
+      }
+      else {
+        assert (0 && "FIXME: Add callback support for PTHLexer.");
+      }
     }
 
     // Client should lex another token.





More information about the cfe-commits mailing list