]> granicus.if.org Git - clang/commitdiff
Switch to void-cast for this. Chris prefers that over the attribute, I'll
authorChandler Carruth <chandlerc@gmail.com>
Sun, 11 Jul 2010 07:42:13 +0000 (07:42 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 11 Jul 2010 07:42:13 +0000 (07:42 +0000)
probably try and switch more of these if I can.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108085 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/PCHReaderDecl.cpp

index b7d3b733c755526e3ead87e783970b64f81de413..28e655ce70df6975596e6658a67b8fd51da24543 100644 (file)
@@ -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 @@ void PCHDeclReader::VisitClassTemplateSpecializationDecl(
                        = 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!");
     }
   }