[LLVMdev] Why BinaryOperator::Create requires same argument types for shifts?

Stephan Falke falke at iti.uka.de
Fri Aug 26 05:32:19 PDT 2011


Hi Yuri,

As stated in LLVM's language reference manual 
(http://llvm.org/docs/LangRef.html#i_shl), both arguments for a shl need 
to have the same type.

What exactly are you trying to do?

--Stephan

> I get an assert @ Instructions.cpp:1774 when Op=llvm::Instruction::Shl.
> Should this assert avoid shift operations?
>
> Yuri



More information about the llvm-dev mailing list