[llvm-dev] invalid cast semantics

Ramkumar Ramachandra via llvm-dev llvm-dev at lists.llvm.org
Fri Nov 6 06:00:40 PST 2015


charles quarra via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>                 llvm::Value* iCast =
> buildParameters.builder.CreatePtrToInt( lv, addrIntTypellvm,
> "castToIntType");

Rather than squinting at this, I suggest that you set a breakpoint
here, and inspect lv->getScalarType(),
lv->getScalarType()->isPointerTy(), addrIntTypellvm->getScalarType(),
and addrIntTypellvm->getScalarType()->isIntegerTy() yourself.

Hope that helps.


More information about the llvm-dev mailing list