diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2010-07-11 07:42:13 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2010-07-11 07:42:13 +0000 |
commit | 1bdb5a68912ff114fcf681bfb823fff0d1c25a84 (patch) | |
tree | e7f258b7294c34e4aaa5ef3f446a5db16b797d06 /lib/Frontend/PCHReaderDecl.cpp | |
parent | fb3f9bebda0e968aeac885c2ddc965af060e9f7e (diff) |
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
Diffstat (limited to 'lib/Frontend/PCHReaderDecl.cpp')
-rw-r--r-- | lib/Frontend/PCHReaderDecl.cpp | 7 |
1 files 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<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!"); } } |