2 Commits

Author SHA1 Message Date
Timm Bäder
b4e0589b2c [clang][Verify] Show prefix in -verify error messages
Differential Revision: https://reviews.llvm.org/D154688
2023-08-17 10:09:50 +02:00
Reid Kleckner
dccbabfacf Destroy the diagnostic client first in ~DiagnosticEngine
Add a comment and a test to ~DiagnosticEngine about the ordering
requirements on the teardown of DiagnosticConsumer. This could also be
accomplished by rearranging the fields of ~DiagnosticEngine, but I felt
that this was a better, more explicit solution.

This fixes PR21911, an issue that occurred after the unique_ptr
migration in r222193.

llvm-svn: 224454
2014-12-17 20:23:11 +00:00