This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Parser] Fix memory leak when failing to parse a forward declared block
ClosedPublic

Authored by rriddle on Jul 19 2022, 4:54 PM.

Details

Summary

This commit fixes a failure edge case where we accidentally drop forward
declared blocks in the error case. This allows for running the
invalid.mlir test in asan mode now.

Fixes #51387

Diff Detail

Event Timeline

rriddle created this revision.Jul 19 2022, 4:54 PM
rriddle requested review of this revision.Jul 19 2022, 4:54 PM
mehdi_amini accepted this revision.Jul 20 2022, 2:09 AM
This revision is now accepted and ready to land.Jul 20 2022, 2:09 AM