]> granicus.if.org Git - clang/commit
DiagnosticsEngine should clear DelayedDiagID before reporting the
authorAlex Lorenz <arphaman@gmail.com>
Wed, 3 May 2017 15:41:16 +0000 (15:41 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Wed, 3 May 2017 15:41:16 +0000 (15:41 +0000)
commit7d6e944fabfa09e9c479dd260481eb3809ac61c0
treec8b0ab420c82f21d161f702e49172784c81ae3f5
parent1a4fbda71e2b17591e86a0448558f29d4fec2442
DiagnosticsEngine should clear DelayedDiagID before reporting the
delayed diagnostic

This avoids an infinite loop that was uncovered in one of our internal tests
by r301992. The testcase is the most reduced version of that auto-generated
test.

rdar://31962618

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@302037 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Diagnostic.cpp
test/Index/KeepGoingWithLotsOfErrors.mm [new file with mode: 0644]