[LLVMbugs] [Bug 9935] New: insertvalue syntax in Language Reference Manual does not show it being vararg.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue May 17 10:09:36 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=9935

           Summary: insertvalue syntax in Language Reference Manual does
                    not show it being vararg.
           Product: Documentation
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: General docs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: michael at lunarg.com
                CC: llvmbugs at cs.uiuc.edu


The reference manual for the insertvalue[1] instruction, shows the syntax of
inservalue as being
 "<result> = insertvalue <aggregate type> <val>, <ty> <elt>, <idx>    ; yields
<aggregate type>", 
while the syntax for extractvalue is 
"<result> = extractvalue <aggregate type> <val>, <idx>{, <idx>}*"

The description of the arguments for insertvalue implies that the syntax for
should be vararg like extractvalue.
"The first operand of an 'insertvalue' instruction is a value of struct or
array type. The second operand is a first-class value to insert. The following
operands are constant indices indicating the position at which to insert the
value in a similar manner as indices in a 'extractvalue' instruction. The value
to insert must have the same type as the value identified by the indices."

Code in Instructions.h seems to treat insertelement as being vararg in the
indices.

[1] http://llvm.org/docs/LangRef.html#i_insertvalue

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list