http://llvm.org/bugs/show_bug.cgi?id=20153
Bug ID: 20153
Summary: Call through alias of null crashes X86 backend
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
consider:
@ext_fun = alias void ()* null
define void @fun() {
call void @ext_fun()
ret void
}
run with:
$ ~/llvm/build/bin/llc -mtriple i386-pc-win32 t.ll -filetype=obj -o t.obj
llc: ~/llvm/src/lib/MC/WinCOFFObjectWriter.cpp:703: virtual void <anonymous
namespace>::WinCOFFObjectWriter::RecordRelocation(const llvm::MCAssembler &,
const llvm::MCAsmLayout &, const llvm::MCFragment *, const llvm::MCFixup &,
llvm::MCValue, bool &, uint64_t &): Assertion `Target.getSymA() && "Relocation
must reference a symbol!"' failed.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs