[llvm-bugs] [Bug 39424] Clang fails to generate code for C11 atomics being returned

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 24 12:38:00 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=39424

Eli Friedman <efriedma at codeaurora.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
                 CC|                            |efriedma at codeaurora.org
             Status|NEW                         |RESOLVED

--- Comment #1 from Eli Friedman <efriedma at codeaurora.org> ---
Your code has undefined behavior; it's reading from an uninitialized variable. 
(Did you mean to write "atomic_int val;" instead of "atomic_int *val;"?)

-- 
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/20181024/bb064484/attachment.html>


More information about the llvm-bugs mailing list