This is an archive of the discontinued LLVM Phabricator instance.

[mlir][llvm] Add assertion in LLVM IR import (NFC).
ClosedPublic

Authored by gysit on Apr 26 2023, 5:48 AM.

Details

Summary

This revision adds an assertion to convertConstantExpr to ensure.
The function is not called if the constant has been converted before.

This is a follow up for https://reviews.llvm.org/D149247.

Diff Detail

Event Timeline

gysit created this revision.Apr 26 2023, 5:48 AM
Herald added a reviewer: dcaballe. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
gysit requested review of this revision.Apr 26 2023, 5:48 AM
gysit updated this revision to Diff 517135.Apr 26 2023, 5:50 AM

Remove debug left over.

victor-eds accepted this revision.Apr 26 2023, 6:31 AM

LGTM, thanks!

This revision is now accepted and ready to land.Apr 26 2023, 6:31 AM
This revision was automatically updated to reflect the committed changes.