[Concepts] Add missing TPA commit to requires expression parsing
authorSaar Raz <saar@raz.email>
Wed, 12 Feb 2020 14:23:55 +0000 (16:23 +0200)
committerSaar Raz <saar@raz.email>
Wed, 12 Feb 2020 14:26:34 +0000 (16:26 +0200)
commit271e495399170d69627c1acd591c9298cb0b5b4b
treefb3a137674406d90b086548a1f5ffa0b1eb5cd09
parent81dbb6aec6261a06132f17b06c9071f4a1871fa4
[Concepts] Add missing TPA commit to requires expression parsing

If an error had occurred when annotating a scope spec during the tentative parse
for a type-requirement, we would not revert nor commit the tentative parse, triggerring
an assertion failure.

Commit the TPA in this case and then do error recovery.
clang/lib/Parse/ParseExprCXX.cpp