clay icon indicating copy to clipboard operation
clay copied to clipboard

test/lib-clay/cocoa/util fails

Open stepancheg opened this issue 12 years ago • 1 comments
trafficstars

Error is this:

[lib-clay/cocoa/util]
Failure: compiler error
Error:

 Attribute 'byval' does not support unsized types!
   %156 = call %ObjcObject* bitcast (%ObjcObject* (%ObjcObject*, %ObjcMethod*, ...)* @objc_msgSend to %ObjcObject* (%ObjcObject*, %ObjcMethod*, %"Vector[Char]"*, %"x86-64 Char")*)(%ObjcObject* byval %146, %ObjcMethod* %155, %"Vector[Char]"* %54, %"x86-64 Char" { i8 120 })
 Attribute 'byval' does not support unsized types!
   call void bitcast (%ObjcObject* (%ObjcObject*, %ObjcMethod*, ...)* @objc_msgSend to void (%ObjcObject*, %ObjcMethod*, %"Vector[Char]"*)*)(%ObjcObject* byval %156, %ObjcMethod* %234, %"Vector[Char]"* %34)
 Broken module found, compilation aborted!
 Stack dump:
 0. Running pass 'Function Pass Manager' on module '/Users/yozh/devel/left/clay/test/./lib-clay/cocoa/util/test.macosx.clay'.
 1. Running pass 'Module Verifier' on function '@"__operators__.call(Static[<lambda /Users/yozh/devel/left/clay/test/./lib-clay/cocoa/util/test.macosx.clay(312,35)>]) clay"'
 signal 4!

stepancheg avatar Mar 02 '13 15:03 stepancheg

Looks like a bug in externals.cpp—ObjcObject shouldn't be passed byval. It could be that the byval attribute is intended for the Vector argument but it calculates the attribute index incorrectly.

jckarter avatar Mar 02 '13 15:03 jckarter