Extend the use of QualifiedNameType to the creation of class template
specialization names. This way, we keep track of sugared types like
std::vector<Real>
I believe we are now using QualifiedNameTypes everywhere we can. Next
step: QualifiedDeclRefExprs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67268 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 63d446f..483b79a 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -87,13 +87,8 @@
} else
return 0;
- if (SS && SS->isNotEmpty() && SS->isSet()) {
- llvm::SmallVector<NestedNameSpecifier, 4> TNNs;
- for (CXXScopeSpec::iterator TNN = SS->begin(), TNNEnd = SS->end();
- TNN != TNNEnd; ++TNN)
- TNNs.push_back(NestedNameSpecifier::getFromOpaquePtr(*TNN));
- T = Context.getQualifiedNameType(&TNNs[0], TNNs.size(), T);
- }
+ if (SS)
+ T = getQualifiedNameType(*SS, T);
return T.getAsOpaquePtr();
}