r235512 - Silencing a -Wunused-variable warning; NFC.

Aaron Ballman aaron at aaronballman.com
Wed Apr 22 08:25:05 PDT 2015


Author: aaronballman
Date: Wed Apr 22 10:25:05 2015
New Revision: 235512

URL: http://llvm.org/viewvc/llvm-project?rev=235512&view=rev
Log:
Silencing a -Wunused-variable warning; NFC.

Modified:
    cfe/trunk/lib/Serialization/ASTReader.cpp

Modified: cfe/trunk/lib/Serialization/ASTReader.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReader.cpp?rev=235512&r1=235511&r2=235512&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTReader.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTReader.cpp Wed Apr 22 10:25:05 2015
@@ -1768,8 +1768,7 @@ void ASTReader::resolvePendingMacro(Iden
     }
 
     Record.clear();
-    switch (PreprocessorRecordTypes RecType =
-                (PreprocessorRecordTypes)Cursor.readRecord(Entry.ID, Record)) {
+    switch ((PreprocessorRecordTypes)Cursor.readRecord(Entry.ID, Record)) {
     case PP_MACRO_DIRECTIVE_HISTORY:
       break;
 





More information about the cfe-commits mailing list