[cfe-commits] r39009 - /cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:26:47 PDT 2007


Author: sabre
Date: Wed Jul 11 11:26:46 2007
New Revision: 39009

URL: http://llvm.org/viewvc/llvm-project?rev=39009&view=rev
Log:
silence warning

Modified:
    cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp

Modified: cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp?rev=39009&r1=39008&r2=39009&view=diff

==============================================================================
--- cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp (original)
+++ cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp Wed Jul 11 11:26:46 2007
@@ -299,9 +299,7 @@
     // Avoid spelling identifiers, the most common form of token.
     FirstChar = II->getName()[0];
   } else if (Tok.getLength() < 256) {
-    const char *TokPtr = Buffer;
-    unsigned Len = PP.getSpelling(Tok, TokPtr);
-    FirstChar = TokPtr[0];
+    FirstChar = Buffer[0];
   } else {
     FirstChar = PP.getSpelling(Tok)[0];
   }





More information about the cfe-commits mailing list