From 0a67eddc8fa2d6d1319deff0d52850f079753b2a Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Mon, 12 Jul 2010 21:41:31 +0000 Subject: Simplify code using the new FoldingSetImpl::InsertNode() overload. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108198 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Frontend/PCHReaderDecl.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'lib/Frontend/PCHReaderDecl.cpp') diff --git a/lib/Frontend/PCHReaderDecl.cpp b/lib/Frontend/PCHReaderDecl.cpp index 28e655ce70..742f0e46b9 100644 --- a/lib/Frontend/PCHReaderDecl.cpp +++ b/lib/Frontend/PCHReaderDecl.cpp @@ -929,15 +929,9 @@ void PCHDeclReader::VisitClassTemplateSpecializationDecl( = cast(Reader.GetDecl(Record[Idx++])); if (ClassTemplatePartialSpecializationDecl *Partial = dyn_cast(D)) { - ClassTemplatePartialSpecializationDecl *Inserted - = CanonPattern->getPartialSpecializations().GetOrInsertNode(Partial); - (void)Inserted; - assert(Inserted == Partial && "Already inserted!"); + CanonPattern->getPartialSpecializations().InsertNode(Partial); } else { - ClassTemplateSpecializationDecl *Inserted - = CanonPattern->getSpecializations().GetOrInsertNode(D); - (void)Inserted; - assert(Inserted == D && "Already inserted!"); + CanonPattern->getSpecializations().InsertNode(D); } } } -- cgit v1.2.3-70-g09d2