[llvm-bugs] [Bug 36764] New: lifetime.end requires the size to be an i64

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Mar 16 01:06:30 PDT 2018


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

            Bug ID: 36764
           Summary: lifetime.end requires the size to be an i64
           Product: libraries
           Version: 5.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Interprocedural Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: jondgoodwin at gmail.com
                CC: llvm-bugs at lists.llvm.org

IRBuilderBase::CreateLifetimeEnd generates the title's error message in a
exception, when asserting that Size's type must be equal to getInt64Ty().

CreateLifetimeEnd is called by InlineFunction's llvm::InlineFunction. (roughly
line 1868).

I suspect the assertion fails because Size was created within the pointer's
context, e.g., Type::getInt64Ty(AI->getContext()) and therefore will not
successfully match the equivalent type that CreateLifetimeEnd obtains from the
global context.

My suspicion was confirmed when I changed my compiler from using a created
context to using the global context, and the problem went away.

-- 
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/20180316/77c26c08/attachment.html>


More information about the llvm-bugs mailing list