The insertion of an unconditional branch during FastISel can differ depending on building with or without debug information. This happens because void FastISel::fastEmitBranch emits an unconditional branch depending on the size of the current basic block without distinguishing between debug and non-debug instructions.
This patch fixes this issue by ignoring debug instructions when getting the size of the basic block.