[llvm-bugs] [Bug 25917] New: findNeededSubprograms segfaults on compile units without subprograms
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Dec 21 16:39:30 PST 2015
https://llvm.org/bugs/show_bug.cgi?id=25917
Bug ID: 25917
Summary: findNeededSubprograms segfaults on compile units
without subprograms
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Linker
Assignee: unassignedbugs at nondot.org
Reporter: andrew.b.adams at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
findNeededSubprograms in IRMover.cpp assumes that the CU->getSubprograms() is
not null and dereferences it, but it is null sometimes in my experience. This
probably happens when the compile unit has no subprograms.
Inserting:
if (!CU->getSubprograms()) continue;
just before the IRMover.cpp line 1196 fixes it for me
--
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/20151222/561906e2/attachment.html>
More information about the llvm-bugs
mailing list