[cfe-commits] r106025 - /cfe/trunk/lib/Frontend/PrintPreprocessedOutput.cpp

Chris Lattner sabre at nondot.org
Tue Jun 15 11:55:23 PDT 2010


Author: lattner
Date: Tue Jun 15 13:55:23 2010
New Revision: 106025

URL: http://llvm.org/viewvc/llvm-project?rev=106025&view=rev
Log:
fix an uninitialized variable, patch by Michael Spencer!

Modified:
    cfe/trunk/lib/Frontend/PrintPreprocessedOutput.cpp

Modified: cfe/trunk/lib/Frontend/PrintPreprocessedOutput.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/PrintPreprocessedOutput.cpp?rev=106025&r1=106024&r2=106025&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/PrintPreprocessedOutput.cpp (original)
+++ cfe/trunk/lib/Frontend/PrintPreprocessedOutput.cpp Tue Jun 15 13:55:23 2010
@@ -394,6 +394,8 @@
   char Buffer[256];
   Token PrevPrevTok;
   Token PrevTok;
+  PrevPrevTok.setKind(tok::unknown);
+  PrevTok.setKind(tok::unknown);
   while (1) {
 
     // If this token is at the start of a line, emit newlines if needed.





More information about the cfe-commits mailing list