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

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 24 12:27:22 PDT 2018


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

            Bug ID: 39424
           Summary: Clang fails to generate code for C11 atomics being
                    returned
           Product: clang
           Version: 7.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hugh.a.gallo at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 21033
  --> https://bugs.llvm.org/attachment.cgi?id=21033&action=edit
An example program with the LLVM IR generated for each function

Clang fails to generate any valid instructions when compiling any function
which returns an atomic_load from an atomic which has been declared and
initialized in that function.

My attachment here is the code which demonstrates the issue, if needed.

clang trunk on godbolt.org also seems to show this issue as well,
https://godbolt.org/z/o9UCO3 for the same example as the attached file.

-- 
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/924b6cea/attachment.html>


More information about the llvm-bugs mailing list