[llvm-bugs] [Bug 42530] New: fatal error: error in backend: Cannot select: intrinsic %llvm.coro.resume

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jul 7 13:45:08 PDT 2019


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

            Bug ID: 42530
           Summary: fatal error: error in backend: Cannot select:
                    intrinsic %llvm.coro.resume
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: arthur.j.odwyer at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Created attachment 22202
  --> https://bugs.llvm.org/attachment.cgi?id=22202&action=edit
test-1ed13d.sh (run script produced by Clang)

Since the ICE message talks about the "backend", I wonder if this is an
indication that -fcoroutines-ts just isn't implemented for Mac OSX yet. (I'm on
OSX 10.11.6, but using an LLVM/Clang that was built from master.)

The following test case is extremely reduced.

====

cat > test.c <<EOF
void *f();
int main() {
    void *coro = f();
    __builtin_coro_resume(coro);
}
EOF
clang -fcoroutines-ts -c test.c

====

fatal error: error in backend: Cannot select: intrinsic %llvm.coro.resume
clang-9: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 9.0.0 (git at github.com:Quuxplusone/clang.git
0b0fedcf8ea844fb1ad956f418825b3b17154e16) (https://git.llvm.org/git/llvm.git
f528f0e60898197fde2faf503c36abad5e033dd8)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Users/ajo/Desktop/push.root/llvm/build/bin
clang-9: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source,
and associated run script.
clang-9: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-9: note: diagnostic msg:
/var/folders/1z/jvnkrdws621c6wmrcf7q_9180000gn/T/test-1ed13d.c
clang-9: note: diagnostic msg:
/var/folders/1z/jvnkrdws621c6wmrcf7q_9180000gn/T/test-1ed13d.sh
clang-9: note: diagnostic msg: Crash backtrace is located in
clang-9: note: diagnostic msg:
/Users/ajo/Library/Logs/DiagnosticReports/clang-9_<YYYY-MM-DD-HHMMSS>_<hostname>.crash
clang-9: note: diagnostic msg: (choose the .crash file that corresponds to your
crash)
clang-9: note: diagnostic msg: 

********************

-- 
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/20190707/1285c088/attachment.html>


More information about the llvm-bugs mailing list