diff options
author | John McCall <rjmccall@apple.com> | 2010-03-25 18:04:51 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-03-25 18:04:51 +0000 |
commit | 32f2fb53d9d7c28c94d8569fd0fcf06cccee0c3d (patch) | |
tree | 5a3ac384bc2e42e82731667b31d8d2b0ed46cb3d /lib/Sema/SemaTemplate.cpp | |
parent | 7eff7c4153faf45b19b5919ef409ee5f6794eb25 (diff) |
Preserve type-source information in friend declarations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99525 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r-- | lib/Sema/SemaTemplate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index 504b513b2c..5a1bec927c 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/lib/Sema/SemaTemplate.cpp @@ -3644,7 +3644,7 @@ Sema::ActOnClassTemplateSpecialization(Scope *S, unsigned TagSpec, if (TUK == TUK_Friend) { FriendDecl *Friend = FriendDecl::Create(Context, CurContext, TemplateNameLoc, - WrittenTy->getType().getTypePtr(), + WrittenTy, /*FIXME:*/KWLoc); Friend->setAccess(AS_public); CurContext->addDecl(Friend); |