[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)
commitb7dadc3562d0488127727c924b8735e4780a2b69
treed5bafd837a23c1ba7437ce10bdddfabf85fdc106
parent98cb8db836b155d0497f9d609a43510fd8eaf83d
[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
llvm-svn: 371995
llvm/lib/Target/SystemZ/SystemZISelLowering.cpp