[cfe-commits] r38640 - /cfe/cfe/trunk/Lex/Pragma.cpp
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:23:26 PDT 2007
Author: sabre
Date: Wed Jul 11 11:23:26 2007
New Revision: 38640
URL: http://llvm.org/viewvc/llvm-project?rev=38640&view=rev
Log:
The location of a _Pragma expanded token is the location of the string, not the
_Pragma token
Modified:
cfe/cfe/trunk/Lex/Pragma.cpp
Modified: cfe/cfe/trunk/Lex/Pragma.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Lex/Pragma.cpp?rev=38640&r1=38639&r2=38640&view=diff
==============================================================================
--- cfe/cfe/trunk/Lex/Pragma.cpp (original)
+++ cfe/cfe/trunk/Lex/Pragma.cpp Wed Jul 11 11:23:26 2007
@@ -136,7 +136,7 @@
// Plop the string (including the trailing null) into a buffer where we can
// lex it.
SourceLocation TokLoc = ScratchBuf->getToken(&StrVal[0], StrVal.size(),
- PragmaLoc);
+ StrLoc);
const char *StrData = SourceMgr.getCharacterData(TokLoc);
unsigned FileID = TokLoc.getFileID();
More information about the cfe-commits
mailing list