aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-11-15 22:43:50 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-11-15 22:43:50 +0000
commitef1b87a1adab4e1c0e47377668513d4d1a2e4946 (patch)
tree8a472293a8d75a31f7c5a9d3df89d1bbf05b9c1a /docs
parent5a364c5561ec04e33a6f5d52c14f1bac6f247ea0 (diff)
downloadexternal_llvm-ef1b87a1adab4e1c0e47377668513d4d1a2e4946.zip
external_llvm-ef1b87a1adab4e1c0e47377668513d4d1a2e4946.tar.gz
external_llvm-ef1b87a1adab4e1c0e47377668513d4d1a2e4946.tar.bz2
Fix typos.
I somehow didn't notice before that the examples for addrspacecast use the wrong syntax for addrspace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194868 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/LangRef.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/LangRef.rst b/docs/LangRef.rst
index e102cb6..f7914f8 100644
--- a/docs/LangRef.rst
+++ b/docs/LangRef.rst
@@ -5785,9 +5785,9 @@ Example:
.. code-block:: llvm
- %X = addrspacecast i32* %x to addrspace(1) i32* ; yields addrspace(1) i32*:%x
- %Y = addrspacecast addrspace(1) <2 x i32>* %y to addrspace(2) i64* ; yields addrspace(2) i32*:%y
- %Z = addrspacecast <4 x i32*> %z to <4 x float addrspace(3)*> ; yelds <4 x float addrspace(3)*>:%z
+ %X = addrspacecast i32* %x to i32 addrspace(1)* ; yields i32 addrspace(1)*:%x
+ %Y = addrspacecast i32 addrspace(1)* %y to i64 addrspace(2)* ; yields i64 addrspace(2)*:%y
+ %Z = addrspacecast <4 x i32*> %z to <4 x float addrspace(3)*> ; yields <4 x float addrspace(3)*>:%z
.. _otherops: