[llvm-bugs] [Bug 26534] New: Link error on null result from getScope
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Feb 8 15:36:25 PST 2016
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: unassignedbugs at nondot.org
Reporter: alonzakai at gmail.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160208/4369ea8c/attachment.html>
More information about the llvm-bugs
mailing list