[cfe-commits] r108085 - /cfe/trunk/lib/Frontend/PCHReaderDecl.cpp

Chandler Carruth chandlerc at gmail.com
Sun Jul 11 00:42:13 PDT 2010


Author: chandlerc
Date: Sun Jul 11 02:42:13 2010
New Revision: 108085

URL: http://llvm.org/viewvc/llvm-project?rev=108085&view=rev
Log:
Switch to void-cast for this. Chris prefers that over the attribute, I'll
probably try and switch more of these if I can.

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

Modified: cfe/trunk/lib/Frontend/PCHReaderDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/PCHReaderDecl.cpp?rev=108085&r1=108084&r2=108085&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/PCHReaderDecl.cpp (original)
+++ cfe/trunk/lib/Frontend/PCHReaderDecl.cpp Sun Jul 11 02:42:13 2010
@@ -20,7 +20,6 @@
 #include "clang/AST/DeclCXX.h"
 #include "clang/AST/DeclTemplate.h"
 #include "clang/AST/Expr.h"
-#include "llvm/Support/Compiler.h"
 using namespace clang;
 
 
@@ -930,12 +929,14 @@
                        = cast<ClassTemplateDecl>(Reader.GetDecl(Record[Idx++]));
     if (ClassTemplatePartialSpecializationDecl *Partial
             = dyn_cast<ClassTemplatePartialSpecializationDecl>(D)) {
-      ClassTemplatePartialSpecializationDecl *Inserted ATTRIBUTE_UNUSED
+      ClassTemplatePartialSpecializationDecl *Inserted
           = CanonPattern->getPartialSpecializations().GetOrInsertNode(Partial);
+      (void)Inserted;
       assert(Inserted == Partial && "Already inserted!");
     } else {
-      ClassTemplateSpecializationDecl *Inserted ATTRIBUTE_UNUSED
+      ClassTemplateSpecializationDecl *Inserted
           = CanonPattern->getSpecializations().GetOrInsertNode(D);
+      (void)Inserted;
       assert(Inserted == D && "Already inserted!");
     }
   }





More information about the cfe-commits mailing list