Unregister ourselves as a DiagnosticsConsumer before we are destroyed. This prevents use-after-free bugs in clang 3.9.  It appears that in this new version of clang, the DiagnosticsConsumer can be used even after the source file has finished being processed and the ASTConsumer has been destroyed.
Unregister ourselves as a DiagnosticsConsumer before we are destroyed.
This prevents use-after-free bugs in clang 3.9.  It appears that in this new
version of clang, the DiagnosticsConsumer can be used even after the source
file has finished being processed and the ASTConsumer has been destroyed.

pelmers/dxr,pelmers/dxr,pelmers/dxr,pelmers/dxr,pelmers/dxr,pelmers/dxr,pelmers/dxr