diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-02-25 16:33:46 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-02-25 16:33:46 +0000 |
commit | 12441b3bc58d6e378571a2912f930c7e661c524f (patch) | |
tree | 7668274848538361aa3be7744bb9fe1dc01ba67d /clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | |
parent | fcf51fd298650957ddb0a77cbd8c6502dbf81fe9 (diff) | |
download | bcm5719-llvm-12441b3bc58d6e378571a2912f930c7e661c524f.tar.gz bcm5719-llvm-12441b3bc58d6e378571a2912f930c7e661c524f.zip |
Push nested-name-specifier source location information into using directives.
llvm-svn: 126489
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp index c96430a5d5d..1d75da71f59 100644 --- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -1638,12 +1638,13 @@ TemplateDeclInstantiator::VisitTemplateTemplateParmDecl( } Decl *TemplateDeclInstantiator::VisitUsingDirectiveDecl(UsingDirectiveDecl *D) { - // Using directives are never dependent, so they require no explicit + // Using directives are never dependent (and never contain any types or + // expressions), so they require no explicit instantiation work. UsingDirectiveDecl *Inst = UsingDirectiveDecl::Create(SemaRef.Context, Owner, D->getLocation(), D->getNamespaceKeyLocation(), - D->getQualifierRange(), D->getQualifier(), + D->getQualifierLoc(), D->getIdentLocation(), D->getNominatedNamespace(), D->getCommonAncestor()); |