소스 검색

fix an uninitialized variable, patch by Michael Spencer!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106025 91177308-0d34-0410-b5e6-96231b3b80d8
Chris Lattner 15 년 전
부모
커밋
90db74c361
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      lib/Frontend/PrintPreprocessedOutput.cpp

+ 2 - 0
lib/Frontend/PrintPreprocessedOutput.cpp

@@ -394,6 +394,8 @@ static void PrintPreprocessedTokens(Preprocessor &PP, Token &Tok,
   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.