PR12713 - crash on invalid due to unmatched parens in decltype
llvm-svn: 167547
This commit is contained in:
@@ -1940,8 +1940,8 @@ bool BalancedDelimiterTracker::diagnoseMissingClose() {
|
||||
}
|
||||
P.Diag(P.Tok, DID);
|
||||
P.Diag(LOpen, diag::note_matching) << LHSName;
|
||||
if (P.SkipUntil(Close))
|
||||
LClose = P.Tok.getLocation();
|
||||
if (P.SkipUntil(Close, /*StopAtSemi*/ true, /*DontConsume*/ true))
|
||||
LClose = P.ConsumeAnyToken();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user