[LLVMbugs] [Bug 7284] New: interpreter zeroes non-integer return values
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jun 2 08:58:01 PDT 2010
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: unassignedbugs at nondot.org
ReportedBy: power at cs.nyu.edu
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list