[LLVMdev] Help with code

Sriraman Tallam tmsriram at CS.Arizona.EDU
Tue Dec 21 15:05:19 PST 2004


opt: Constants.cpp:1142: static llvm::Constant*
llvm::ConstantExpr::getGetElementPtr(llvm::Constant*, const
std::vector<llvm::Constant*, std::allocator<llvm::Constant*> >&):
Assertion `Ty && "GEP indices invalid!"' failed.


This is the llvm gcc error.

I'll try the disable-verify option. Thanks.

On Tue, 21 Dec 2004, Misha Brukman wrote:

> On Tue, Dec 21, 2004 at 03:53:47PM -0700, Sriraman Tallam wrote:
> > Constant *strcon==ConstantArray::get("Value : %d\n");
>
> OK, then what's the assertion?
>
> You can also see the resulting module by using -disable-verify:
>
> $ opt -yourpass -disable-verify < file.bc | llvm-dis
>
> You may see what the problem is by looking at the LLVM assembly.
>
> --
> Misha Brukman :: http://misha.brukman.net :: http://llvm.cs.uiuc.edu
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list