[cfe-commits] r38718 - /cfe/cfe/trunk/Lex/MacroExpander.cpp
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:24:04 PDT 2007
Author: sabre
Date: Wed Jul 11 11:24:04 2007
New Revision: 38718
URL: http://llvm.org/viewvc/llvm-project?rev=38718&view=rev
Log:
Clarify assertion
Modified:
cfe/cfe/trunk/Lex/MacroExpander.cpp
Modified: cfe/cfe/trunk/Lex/MacroExpander.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Lex/MacroExpander.cpp?rev=38718&r1=38717&r2=38718&view=diff
==============================================================================
--- cfe/cfe/trunk/Lex/MacroExpander.cpp (original)
+++ cfe/cfe/trunk/Lex/MacroExpander.cpp Wed Jul 11 11:24:04 2007
@@ -115,9 +115,9 @@
}
if (isBad) {
- assert(!Toks.empty() && "No tokens to charize?");
+ assert(!Toks.empty() && "No eof token at least?");
PP.Diag(Toks[0], diag::err_invalid_character_to_charify);
- Result = "' '";
+ Result = "' '"; // Use something arbitrary, but legal.
}
}
More information about the cfe-commits
mailing list