This is an archive of the discontinued LLVM Phabricator instance.

[Assembler] Restore diagnostics handler after parsing.
AbandonedPublic

Authored by sanwou01 on Feb 1 2017, 11:37 AM.

Details

Summary

The AsmParser's diagnostics handler is no longer valid once the
AsmParser gets destructed. Restore the saved handlers back into the
SourceMgr.

Event Timeline

sanwou01 created this revision.Feb 1 2017, 11:37 AM
rengolin edited edge metadata.Feb 1 2017, 2:09 PM

Why would you need the diag handler after it's destructed?

sanwou01 abandoned this revision.Feb 8 2017, 2:08 AM

Ready to land as part of D29441.