[llvm-dev] Constants.cpp get() assertion failed

George Burgess IV via llvm-dev llvm-dev at lists.llvm.org
Wed Jun 1 13:11:40 PDT 2016

Presumably, some piece of code passed a Type that isn't a struct, array, or
vector into ConstantAggregateZero::get. (Well, either that, or there's some
icky memory corruption going on somewhere, which would be bad.)

If you're writing code that uses LLVM, it may be good to check that the
code you're working with isn't accidentally doing this. OTOH, if this
assertion failure is something you're getting from a prebuilt tool (e.g.
clang, ...), please report this bug to whoever you got the tool from. :)

On Wed, Jun 1, 2016 at 4:23 AM, Randall via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> I work on eclipse for cpp of linux.
> static llvm::ConstantAggregateZero*
> llvm::ConstantAggregateZero::get(llvm::Type*): Assertion’(Ty->isStructTy()
> || Ty->isArrayTy() || Ty->isVectorTy()) && “Cannot create an aggregate zero
> of non-aggregate type!”’ failed. What are some possible reasons? Another
> machine with the same enviroment including llvm and eclipse version has a
> good performance. I can’t explain it.
> Thank you.
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160601/f5ffb352/attachment.html>

More information about the llvm-dev mailing list