This is an archive of the discontinued LLVM Phabricator instance.

[mlir][EDSC] Fix off-by-one BlockBuilder insertion point.
ClosedPublic

Authored by nicolasvasilache on May 4 2020, 1:37 PM.

Details

Summary

In the particular case of an insertion in a block without a terminator, the BlockBuilder insertion point should be block->end().

Adding a unit test to exercise this.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2020, 1:37 PM
ftynse accepted this revision.May 4 2020, 2:24 PM
This revision is now accepted and ready to land.May 4 2020, 2:24 PM
This revision was automatically updated to reflect the committed changes.