https://llvm.org/bugs/show_bug.cgi?id=26534
Bug ID: 26534 Summary: Link error on null result from getScope Product: tools Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: llvm-link Assignee: unassignedb...@nondot.org Reporter: alonza...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified On line 1238 of IRMover.cpp, if (auto *SP = getDISubprogram(dyn_cast<MDNode>(IE->getScope()))) I have seen a testcase where the dyn_cast fails as it receives a null pointer. I don't understand this code enough to know if the fix is dyn_cast_or_null or not. I'm afraid the testcase I have is rather large. It's in the files provided in this bugreport, https://github.com/kripken/emscripten/issues/4078#issuecomment-180755159 And the steps to reproduce are to run llvm-link libvsomeip.so -o linked.so Stripping debug info and then linking avoids the problem, further confirming it's a debuginfo issue. -- 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