[llvmlinux] opt fails with assertion in Attributes.cpp

Marcelo Sousa marceloabsousa at gmail.com
Mon Jun 17 13:16:38 UTC 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.linuxfoundation.org/pipermail/llvmlinux/attachments/20130617/2214e4d4/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: async.c
Type: text/x-csrc
Size: 10175 bytes
Desc: not available
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20130617/2214e4d4/attachment-0001.bin>
-------------- 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.linuxfoundation.org/pipermail/llvmlinux/attachments/20130617/2214e4d4/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: async.c.ll
Type: application/octet-stream
Size: 458996 bytes
Desc: not available
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20130617/2214e4d4/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: errorlog
Type: application/octet-stream
Size: 2005 bytes
Desc: not available
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20130617/2214e4d4/attachment-0005.obj>


More information about the LLVMLinux mailing list