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

           Summary: interpreter zeroes non-integer return values
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Interpreter
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


The current interpreter code silently zeroes out the return value for any
non-integer return types.  This can be a bit frustrating, as it's easier to
debug in the interpreter if code isn't crashing.

Would it be possible to change Execution.cpp:594 from

-    if (RetTy && RetTy->isIntegerTy()) {          // Nonvoid return type?

to something like this:

+    if (RetTy && !RetTy->isVoidTy()) {

or, if there are other issues with non-integer types, at least emit a warning
that the return has been ignored?

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

Reply via email to