]> granicus.if.org Git - llvm/commit
[SystemZ] Call erase() on the right MBB in SystemZTargetLowering::emitSelect()
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Mon, 16 Sep 2019 14:49:36 +0000 (14:49 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Mon, 16 Sep 2019 14:49:36 +0000 (14:49 +0000)
commit6f3a6de0a7b1f720b702726179ddf3ddcdce1705
tree941171eb1466282d39c75f909dabfef02a0903bb
parent5932076b5e868a64b82e4fe5a31a2d5eae0abbb5
[SystemZ]  Call erase() on the right MBB in SystemZTargetLowering::emitSelect()

Since MBB was split *before* MI, the MI(s) will reside in JoinMBB (MBB) at
the point of erasing them, so calling StartMBB->erase() is actually wrong,
although it is "working" by all appearances.

Review: Ulrich Weigand

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371995 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZISelLowering.cpp