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)
commitd7dfec818b372b8e5d9addd0d2f224e824283d03
tree0c8fab6cf54c8d15bc3caa32cedd498f01c4cd20
parentd10df49c90fd0229c2364b119aebeba412b6bed0
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

llvm-svn: 302037
clang/lib/Basic/Diagnostic.cpp
clang/test/Index/KeepGoingWithLotsOfErrors.mm [new file with mode: 0644]