diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-09 20:08:58 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-09 20:08:58 +0000 |
commit | e3db84c6c2ad54956f423088b4b487e187f956c4 (patch) | |
tree | 414f4da9f1cbceb8c9bdb9d93145a1553543d6bb /llvm | |
parent | 1fc9be30ef2e3621d41524f7b1ab5d7fc1b0ccd2 (diff) | |
download | bcm5719-llvm-e3db84c6c2ad54956f423088b4b487e187f956c4.tar.gz bcm5719-llvm-e3db84c6c2ad54956f423088b4b487e187f956c4.zip |
Explain that bitcast can only cast a pointer to another pointer.
llvm-svn: 33041
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/docs/LangRef.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html index caaf983ef97..b3cc8db5606 100644 --- a/llvm/docs/LangRef.html +++ b/llvm/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 |