From: Chris Lattner Date: Sun, 22 May 2011 07:18:08 +0000 (+0000) Subject: insertvalue takes a variable number of arguments, document this, fixing PR9935. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8645d1acc0c8504fd99690ef8ba6dedd73381fa9;p=oota-llvm.git insertvalue takes a variable number of arguments, document this, fixing PR9935. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131850 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/LangRef.html b/docs/LangRef.html index 58da87540d8..91298accf73 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -4302,7 +4302,7 @@ that the invoke/unwind semantics are likely to change in future versions.

Syntax:
-  <result> = insertvalue <aggregate type> <val>, <ty> <elt>, <idx>    ; yields <aggregate type>
+  <result> = insertvalue <aggregate type> <val>, <ty> <elt>, <idx>{, }*    ; yields <aggregate type>
 
Overview:
@@ -4326,8 +4326,9 @@ that the invoke/unwind semantics are likely to change in future versions.

Example:
-  %agg1 = insertvalue {i32, float} undef, i32 1, 0         ; yields {i32 1, float undef}
-  %agg2 = insertvalue {i32, float} %agg1, float %val, 1    ; yields {i32 1, float %val}
+  %agg1 = insertvalue {i32, float} undef, i32 1, 0              ; yields {i32 1, float undef}
+  %agg2 = insertvalue {i32, float} %agg1, float %val, 1         ; yields {i32 1, float %val}
+  %agg3 = insertvalue {i32, {float}} %agg1, float %val, 1, 0    ; yields {i32 1, float %val}