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: unassignedb...@nondot.org Reporter: andrew.b.ad...@gmail.com CC: llvm-bugs@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs