[LLVMbugs] [Bug 2178] New: byval ignored by llvm2cpp.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Mar 28 22:37:57 PDT 2008


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: unassignedbugs at nondot.org
        ReportedBy: ofv at wanadoo.es
                CC: llvmbugs at cs.uiuc.edu


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.



More information about the llvm-bugs mailing list