http://llvm.org/bugs/show_bug.cgi?id=2178
Summary: byval ignored by llvm2cpp.
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [email protected]
On the demo cgi:
http://www.llvm.org/demo/index.cgi
enter this code:
struct S {
double d;
};
S foo(S);
double bar() {
S s;
s = foo(s);
return s.d;
}
Check C++ as source language and check "Show LLVM C++ API code".
The C++ API code shown does not show any use of ParamAttr::ByVal, despite `foo'
being declared as
declare void @_Z3foo1S(%struct.S* sret , %struct.S* byval)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs