[llvm-bugs] [Bug 28516] New: LangRef: call's fnty no longer is a pointer type

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 12 01:44:26 PDT 2016


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

            Bug ID: 28516
           Summary: LangRef: call's fnty no longer is a pointer type
           Product: Documentation
           Version: 3.7
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: General docs
          Assignee: unassignedbugs at nondot.org
          Reporter: j-llvmbugtracker at watlock.be
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

I'm not sure whether this is a documentation or an llvm IR parser bug.

In llvm 3.5, the "fnty" of a call instruction in LLVM IR (if specified) is a
function pointer type and must end in a "*".

In llvm 3.7, the "fnty" of a call instruction in LLVM IR (if specified) appears
to be a plain "function" type and must not end in a "*".

Example:

Accepted by LLVM 3.5:
  %5 = call i32 (i32)* @test(i32 %4)

Accepted by LLVM 3.7:
  %5 = call i32 (i32) @test(i32 %4)

The documentation both for LLVM 3.5 and 3.7 says the "fnty*" syntax is the
correct one. I don't know with which LLVM version exactly this changed.

-- 
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/20160712/096bed57/attachment-0001.html>


More information about the llvm-bugs mailing list