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 | 62e5e56dad1f982c9aa03703fc3f541d307900bc (patch) | |
| tree | 7381699c88034ff1b475fbba645820bfb57802c0 | |
| parent | 1dba6814c9c612d34d5f33e9f1ca2d75a4dfa2c4 (diff) | |
| download | bcm5719-llvm-62e5e56dad1f982c9aa03703fc3f541d307900bc.tar.gz bcm5719-llvm-62e5e56dad1f982c9aa03703fc3f541d307900bc.zip | |
Switch to void-cast for this. Chris prefers that over the attribute, I'll
probably try and switch more of these if I can.
llvm-svn: 108085
| -rw-r--r-- | clang/lib/Frontend/PCHReaderDecl.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Frontend/PCHReaderDecl.cpp b/clang/lib/Frontend/PCHReaderDecl.cpp index b7d3b733c75..28e655ce70d 100644 --- a/clang/lib/Frontend/PCHReaderDecl.cpp +++ b/clang/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!"); } } |

