[llvm-bugs] [Bug 31123] New: [LTO] Reject modules without a datalayout

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Nov 22 13:12:14 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=31123

            Bug ID: 31123
           Summary: [LTO] Reject modules without a datalayout
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Interprocedural Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: davide at freebsd.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

In r287699, I changed lld to not emit an error when a bitcode file passed as
input doesn't contain a datalayout.
I previously added this check because we didn't set a default datalayout in lld
and that caused the linker to crash.
Now, lld switched to `lib/LTO` and we always call setDataLayout on the
LTOModule.

Mehdi (and Chandler) pointed out it would be a good thing(TM) to warn (or
error?) on modules without a datalayout. I agree, and I think the right place
to implement this (at least initially is lib/LTO).

-- 
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/20161122/221a3e38/attachment.html>


More information about the llvm-bugs mailing list