diff options
Diffstat (limited to 'clang/lib/Sema/SemaDeclCXX.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaDeclCXX.cpp | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp index 0bf97f560d5..cd722fe1693 100644 --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -1711,8 +1711,12 @@ Sema::DeclPtrTy Sema::ActOnUsingDirective(Scope *S,      while (CommonAncestor && !CommonAncestor->Encloses(CurContext))        CommonAncestor = CommonAncestor->getParent(); -    UDir = UsingDirectiveDecl::Create(Context, CurContext, UsingLoc, -                                      NamespcLoc, IdentLoc, +    UDir = UsingDirectiveDecl::Create(Context,  +                                      CurContext, UsingLoc, +                                      NamespcLoc,  +                                      SS.getRange(), +                                      (NestedNameSpecifier *)SS.getScopeRep(), +                                      IdentLoc,                                        cast<NamespaceDecl>(NS),                                        CommonAncestor);      PushUsingDirective(S, UDir); | 

