[LLVMdev] opt fails with assertion in Attributes.cpp

Marcelo Sousa marceloabsousa at gmail.com
Mon Jun 17 06:16:38 PDT 2013


Hello,

I'm getting an error when running opt with what seems to be a valid
bytecode file compiled from one the Linux Kernel files.
The error is:
opt: /home/scratch/llvm/lib/IR/Attributes.cpp:119: llvm::StringRef
llvm::Attribute::getKindAsString() const: Assertion `isStringAttribute() &&
"Invalid attribute type to get the kind as a string!"' failed.

I send you in attach the .{c,bc,ll} and the log file of the error.
Any insight on how to solve this would be quite helpful because it occurs
in several bytecode files of the Linux Kernel source.

I'm using llvm-3.4svn.

Kind regards,
Marcelo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130617/2214e4d4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: async.c
Type: text/x-csrc
Size: 10176 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130617/2214e4d4/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: async.c.bc
Type: application/octet-stream
Size: 92004 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130617/2214e4d4/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: async.c.ll
Type: application/octet-stream
Size: 458997 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130617/2214e4d4/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: errorlog
Type: application/octet-stream
Size: 2006 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130617/2214e4d4/attachment-0002.obj>


More information about the llvm-dev mailing list