summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-09 20:08:58 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-09 20:08:58 +0000
commit19b569fc08dbd968ce96149dac87857e4f336918 (patch)
treee95655b4997c6b6e12b8891a03665cfbefe09555 /docs
parent251f21492e759369dc04b2859afa54458dcd1f6f (diff)
downloadllvm-19b569fc08dbd968ce96149dac87857e4f336918.tar.gz
llvm-19b569fc08dbd968ce96149dac87857e4f336918.tar.bz2
llvm-19b569fc08dbd968ce96149dac87857e4f336918.tar.xz
Explain that bitcast can only cast a pointer to another pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33041 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/LangRef.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html
index caaf983ef9..b3cc8db560 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -3090,7 +3090,8 @@ nothing is done (<i>no-op cast</i>).</p>
<p>The '<tt>bitcast</tt>' instruction takes a value to cast, which must be
a first class value, and a type to cast it to, which must also be a <a
href="#t_firstclass">first class</a> type. The bit sizes of <tt>value</tt>
-and the destination type, <tt>ty2</tt>, must be identical.</p>
+and the destination type, <tt>ty2</tt>, must be identical. If the source
+type is a pointer, the destination type must also be a pointer.</p>
<h5>Semantics:</h5>
<p>The '<tt>bitcast</tt>' instruction converts <tt>value</tt> to type