forked from OSchip/llvm-project
Fix some regressions in the GCC testsuite due to bad souce-location
information. Fixes <rdar://problem/9063643>. llvm-svn: 126721
This commit is contained in:
parent
683bbc16c4
commit
ff42ec5895
|
@ -221,8 +221,12 @@ bool Parser::ParseOptionalCXXScopeSpecifier(CXXScopeSpec &SS,
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue