diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2010-07-11 03:24:05 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2010-07-11 03:24:05 +0000 |
commit | fb3f9bebda0e968aeac885c2ddc965af060e9f7e (patch) | |
tree | 97d942a33f3b5d632830e5534ebc16b4a19af905 /lib/Frontend/PCHReaderDecl.cpp | |
parent | 4156a4cbd56bee7f61d6c5eadb67d8e4bd141236 (diff) |
Mark assert-only variables as unused.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108068 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHReaderDecl.cpp')
-rw-r--r-- | lib/Frontend/PCHReaderDecl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Frontend/PCHReaderDecl.cpp b/lib/Frontend/PCHReaderDecl.cpp index dd2d2825f8..b7d3b733c7 100644 --- a/lib/Frontend/PCHReaderDecl.cpp +++ b/lib/Frontend/PCHReaderDecl.cpp @@ -20,6 +20,7 @@ #include "clang/AST/DeclCXX.h" #include "clang/AST/DeclTemplate.h" #include "clang/AST/Expr.h" +#include "llvm/Support/Compiler.h" using namespace clang; @@ -929,11 +930,11 @@ void PCHDeclReader::VisitClassTemplateSpecializationDecl( = cast<ClassTemplateDecl>(Reader.GetDecl(Record[Idx++])); if (ClassTemplatePartialSpecializationDecl *Partial = dyn_cast<ClassTemplatePartialSpecializationDecl>(D)) { - ClassTemplatePartialSpecializationDecl *Inserted + ClassTemplatePartialSpecializationDecl *Inserted ATTRIBUTE_UNUSED = CanonPattern->getPartialSpecializations().GetOrInsertNode(Partial); assert(Inserted == Partial && "Already inserted!"); } else { - ClassTemplateSpecializationDecl *Inserted + ClassTemplateSpecializationDecl *Inserted ATTRIBUTE_UNUSED = CanonPattern->getSpecializations().GetOrInsertNode(D); assert(Inserted == D && "Already inserted!"); } |