[LLVMbugs] [Bug 20153] New: Call through alias of null crashes X86 backend

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jun 28 03:46:49 PDT 2014


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: unassignedbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140628/42de453a/attachment.html>


More information about the llvm-bugs mailing list