[llvm-dev] Function return type does not match operand type of return inst!

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Thu Oct 15 09:36:30 PDT 2015


On 15 October 2015 at 01:08, Priyanka Bamne via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
>         merge_term->setOperand(0,clonedBlock);

This seems to be assuming that all basic block terminators will be an
unconditional branch. Judging by the error message, you're applying it
to one with a ret instead and converting it to "ret label %clonedBB".

Cheers.

Tim.


More information about the llvm-dev mailing list