[llvm-bugs] [Bug 34834] New: Assertion failure with debuginfos and inlining ('Invalid result number for the given node')
llvm-bugs at lists.llvm.org
Wed Oct 4 11:30:24 PDT 2017
Bug ID: 34834
Summary: Assertion failure with debuginfos and inlining
('Invalid result number for the given node')
Assignee: unassignedbugs at nondot.org
Reporter: kinke at gmx.net
CC: llvm-bugs at lists.llvm.org
Created attachment 19233
4 IR files (new/old, with/without inlining).
Assertion failed: (!Node || !ResNo || ResNo < Node->getNumValues()) && "Invalid
result number for the given node!", file
C:\LDC\llvm\include\llvm/CodeGen/SelectionDAGNodes.h, line 1038
when compiling a tiny D file with LDC using LLVM 5.0 (tested for Linux and
Windows-MSVC targets). It requires debuginfos output AND enabled inlining (no
other optimizations required). That code used to work; recent LDC has only
minimally changed the IR (in-place construction in one function), and that
seems to trigger it.
The tiny relevant IR diff is here:
Also happens with LLVM 4.0.1 for Linux targets.
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs