[LLVMdev] Assert with getZExtValue()?

Krzysztof Parzyszek kparzysz at codeaurora.org
Mon Dec 3 11:03:48 PST 2012


On 12/3/2012 12:52 PM, Ryan Taylor wrote:
> So the problem here was trying to return MIN_VALUE zero extended, if I
> return sign extended than this issue is resolved; however, I still get
> an error with getSExtValue when trying to get the value of the const
> from Instruction: %mask166 = and i128 %lvar_ins176, -18446462598732840961

You have the value in an APInt.  There is no primitive type that can 
hold it.

-Krzysztof


-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
hosted by The Linux Foundation



More information about the llvm-dev mailing list