[LLVMbugs] [Bug 21470] Clang miscompiles fabs on x86_64-w64-windows-gnu
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Nov 3 16:38:33 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=21470
Reid Kleckner <rnk at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #9 from Reid Kleckner <rnk at google.com> ---
(In reply to comment #7)
> Right. The function has to retain its non-returnedness, and it does. It
> can't just replace it with nothing but a "ret undef". Sorry, I misunderstood
> when Reid told me about this bug, I thought it was replacing it with a "ret
> undef" and no infinite self-recursion.
We do in fact do that, however:
$ cat t.cpp
extern "C" int foo() { return foo(); }
$ clang -cc1 t.cpp -emit-llvm -O2 -o - | grep @foo -A3
define i32 @foo() #0 {
entry:
ret i32 undef
}
Probably because the call to foo has no users and foo is "readonly" so we do a
later cleanup to delete it.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141104/52c00a3b/attachment.html>
More information about the llvm-bugs
mailing list