[clang] Fix an infinite loop during typo-correction
authorHaojian Wu <hokein.wu@gmail.com>
Wed, 7 Jul 2021 06:38:34 +0000 (08:38 +0200)
committerHaojian Wu <hokein.wu@gmail.com>
Fri, 9 Jul 2021 10:03:57 +0000 (12:03 +0200)
commit47653db6d2a3964c14cca5ffa73e79aeee292e8b
tree0e2ebda7683bac1ead99255280088c4a8ecef537
parentf4877c78c0fc98be47b926439bbfe33d5e1d1b6d
[clang] Fix an infinite loop during typo-correction

See https://bugs.llvm.org/show_bug.cgi?id=50797#c6

Differential Revision: https://reviews.llvm.org/D105533
clang/lib/Sema/SemaExprCXX.cpp
clang/test/Sema/typo-correction-ambiguity.c
clang/test/Sema/typo-correction-no-hang.c [new file with mode: 0644]