summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorDan Liew <dan@su-root.co.uk>2014-09-08 21:19:46 +0000
committerDan Liew <dan@su-root.co.uk>2014-09-08 21:19:46 +0000
commitffcfe7fc53fa264fe9a8a11f239533710ed09b39 (patch)
treecbc78fbca92d779bc9b731079679de51f8ca0f9d /llvm/docs
parent85b0a03a6972321813ca418f0db236f8707b6ea2 (diff)
downloadbcm5719-llvm-ffcfe7fc53fa264fe9a8a11f239533710ed09b39.tar.gz
bcm5719-llvm-ffcfe7fc53fa264fe9a8a11f239533710ed09b39.zip
Fix type error in insertvalue example in LangRef. %agg1 is of type {i32,
float} and thus cannot be used where a type {i32, {float}} is expected. llvm-svn: 217405
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/LangRef.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index 8e574dfd7af..b25dfdecfb9 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -5075,7 +5075,7 @@ 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}
- %agg3 = insertvalue {i32, {float}} %agg1, float %val, 1, 0 ; yields {i32 1, float %val}
+ %agg3 = insertvalue {i32, {float}} undef, float %val, 1, 0 ; yields {i32 undef, {float %val}}
.. _memoryops:
OpenPOWER on IntegriCloud