information. Fixes <rdar://problem/
9063643>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126721
91177308-0d34-0410-b5e6-
96231b3b80d8
TemplateArgsPtr,
TemplateId->RAngleLoc,
CCLoc,
- EnteringContext))
- SS.SetInvalid(SourceRange(SS.getBeginLoc(), CCLoc));
+ EnteringContext)) {
+ SourceLocation StartLoc
+ = SS.getBeginLoc().isValid()? SS.getBeginLoc()
+ : TemplateId->TemplateNameLoc;
+ SS.SetInvalid(SourceRange(StartLoc, CCLoc));
+ }
TemplateId->Destroy();
continue;