Skip to content

byval ignored by llvm2cpp. #2550

@oscarfv

Description

@oscarfv
mannequin
Bugzilla Link 2178
Resolution FIXED
Resolved on Mar 31, 2008 14:19
Version unspecified
OS All
CC @asl,@tlattner

Extended Description

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilla

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions