[llvm] r217405 - Fix type error in insertvalue example in LangRef. %agg1 is of type {i32,
Dan Liew
dan at su-root.co.uk
Mon Sep 8 14:19:47 PDT 2014
Author: delcypher
Date: Mon Sep 8 16:19:46 2014
New Revision: 217405
URL: http://llvm.org/viewvc/llvm-project?rev=217405&view=rev
Log:
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.
Modified:
llvm/trunk/docs/LangRef.rst
Modified: llvm/trunk/docs/LangRef.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LangRef.rst?rev=217405&r1=217404&r2=217405&view=diff
==============================================================================
--- llvm/trunk/docs/LangRef.rst (original)
+++ llvm/trunk/docs/LangRef.rst Mon Sep 8 16:19:46 2014
@@ -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:
More information about the llvm-commits
mailing list