]> granicus.if.org Git - clang/commitdiff
Fix unused variable warning.
authorDaniel Dunbar <daniel@zuster.org>
Sat, 20 Mar 2010 01:11:56 +0000 (01:11 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 20 Mar 2010 01:11:56 +0000 (01:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99021 91177308-0d34-0410-b5e6-96231b3b80d8

tools/CIndex/CIndex.cpp

index 08882168ffe44efefbb045101e20dfa18f9242d7..1000818692a0dac2627a7da804bf84e6d90a09dc 100644 (file)
@@ -457,8 +457,7 @@ bool CursorVisitor::VisitChildren(CXCursor Cursor) {
       return true;
 
     // Walk the preprocessing record.
-    if (PreprocessingRecord *PPRec
-                       = CXXUnit->getPreprocessor().getPreprocessingRecord()) {
+    if (CXXUnit->getPreprocessor().getPreprocessingRecord()) {
       // FIXME: Once we have the ability to deserialize a preprocessing record,
       // do so.
       PreprocessingRecord::iterator E, EEnd;