Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test/lib-clay/cocoa/util fails #488

Open
stepancheg opened this issue Mar 2, 2013 · 1 comment
Open

test/lib-clay/cocoa/util fails #488

stepancheg opened this issue Mar 2, 2013 · 1 comment
Labels

Comments

@stepancheg
Copy link
Collaborator

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!
@jckarter
Copy link
Owner

jckarter commented Mar 2, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants