From 1bdb5a68912ff114fcf681bfb823fff0d1c25a84 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sun, 11 Jul 2010 07:42:13 +0000 Subject: [PATCH] Switch to void-cast for this. Chris prefers that over the attribute, I'll 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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Frontend/PCHReaderDecl.cpp b/lib/Frontend/PCHReaderDecl.cpp index b7d3b733c7..28e655ce70 100644 --- a/lib/Frontend/PCHReaderDecl.cpp +++ b/lib/Frontend/PCHReaderDecl.cpp @@ -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(Reader.GetDecl(Record[Idx++])); if (ClassTemplatePartialSpecializationDecl *Partial = dyn_cast(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!"); } } -- 2.40.0