mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-02 23:16:05 +00:00
PR19352 - getLocation() points to the wrong position for FriendDecls
llvm-svn: 209511
This commit is contained in:
parent
13a0a38fe0
commit
3a01af0805
@ -11425,7 +11425,9 @@ FriendDecl *Sema::CheckFriendTypeDecl(SourceLocation LocStart,
|
||||
// If the type specifier in a friend declaration designates a (possibly
|
||||
// cv-qualified) class type, that class is declared as a friend; otherwise,
|
||||
// the friend declaration is ignored.
|
||||
return FriendDecl::Create(Context, CurContext, LocStart, TSInfo, FriendLoc);
|
||||
return FriendDecl::Create(Context, CurContext,
|
||||
TSInfo->getTypeLoc().getLocStart(), TSInfo,
|
||||
FriendLoc);
|
||||
}
|
||||
|
||||
/// Handle a friend tag declaration where the scope specifier was
|
||||
|
Loading…
x
Reference in New Issue
Block a user