[llvm-bugs] [Bug 30344] New: Assertion `Val && "isa<> used on a null pointer"' failed while linking LTO objects (recent regression)
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Sep 10 09:56:50 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=30344
Bug ID: 30344
Summary: Assertion `Val && "isa<> used on a null pointer"'
failed while linking LTO objects (recent regression)
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: bero at lindev.ch
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 17236
--> https://llvm.org/bugs/attachment.cgi?id=17236&action=edit
IR code producing the assert
Using llvm and clang svn rev. 281115 (3.9.0 release is ok), building
networkmanager-qt with lto enabled (both -flto and -flto=thin produce the
error) results in
ld: ../include/llvm/Support/Casting.h:95: static bool
llvm::isa_impl_cl<llvm::GlobalAlias, const llvm::GlobalValue *>::doit(const
>From *) [To = llvm::GlobalAlias, From = const llvm::GlobalValue *]: Assertion
`Val && "isa<> used on a null pointer"' failed.
clang-4.0: error: unable to execute command: Aborted (core dumped)
clang-4.0: error: linker command failed due to signal (use -v to see
invocation)
The error is reproducible when using just one of the object files generated
earlier (attached).
$ clang -fPIC -flto -shared -o test.so device.cpp.o
ld: ../include/llvm/Support/Casting.h:95: static bool
llvm::isa_impl_cl<llvm::GlobalAlias, const llvm::GlobalValue *>::doit(const
>From *) [To = llvm::GlobalAlias, From = const llvm::GlobalValue *]: Assertion
`Val && "isa<> used on a null pointer"' failed.
clang-4.0: error: unable to execute command: Aborted (core dumped)
clang-4.0: error: linker command failed due to signal (use -v to see
invocation)
--
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/20160910/706c2b3e/attachment.html>
More information about the llvm-bugs
mailing list