[PATCH] D14632: [MachineSink] Don't break ImplicitNulls
David Majnemer via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 16 12:45:44 PST 2015
majnemer added a subscriber: majnemer.
================
Comment at: lib/CodeGen/MachineSink.cpp:694
@@ +693,3 @@
+ auto *PredMBB = *MBB->pred_begin();
+ auto *PredBB = PredMBB->getBasicBlock();
+
----------------
Can't `getBasicBlock` fail? IIRC, `MachineBasicBlock`s aren't obligated to map back to a `BasicBlock`.
http://reviews.llvm.org/D14632
More information about the llvm-commits
mailing list