[LLVMbugs] [Bug 10485] New: Struct Passed by Value treated as if Passed By Reference with --force-interpreter

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 25 15:02:43 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10485

           Summary: Struct Passed by Value treated as if Passed By
                    Reference with --force-interpreter
           Product: new-bugs
           Version: 2.7
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: bprosnitz at gmail.com
                CC: llvmbugs at cs.uiuc.edu


In the attached code, the struct's internal data is modified by lli when
--force-interpreter flag is specified while it is correctly not modified
without the flag.

$ lli -force-interpreter code.s.bc
checksum x.A = 0
checksum x.B = 0
checksum x.C = 2

$ lli code.s.bc
checksum x.A = 0
checksum x.B = 0
checksum x.C = 1

This code is compiled with llvm-2.7's version of dragonegg and run with
llvm-2.7.

-- 
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