From 8645d1acc0c8504fd99690ef8ba6dedd73381fa9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 22 May 2011 07:18:08 +0000 Subject: 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 --- docs/LangRef.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/LangRef.html b/docs/LangRef.html index 58da875..91298ac 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}
 
-- cgit v1.1