aboutsummaryrefslogtreecommitdiffstats
path: root/docs/LangRef.html
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-08-15 19:36:05 +0000
committerChris Lattner <sabre@nondot.org>2002-08-15 19:36:05 +0000
commit2b4dcbb91d7f31cea653c00597eeb98404acc0f2 (patch)
tree26fb9eb80ccecda5b573df5e2746cbe584e68848 /docs/LangRef.html
parentd05e359b102b508376fb34ea5733a97e5bc885dd (diff)
downloadexternal_llvm-2b4dcbb91d7f31cea653c00597eeb98404acc0f2.zip
external_llvm-2b4dcbb91d7f31cea653c00597eeb98404acc0f2.tar.gz
external_llvm-2b4dcbb91d7f31cea653c00597eeb98404acc0f2.tar.bz2
Add a note mentioning that bools promote to 0 or 1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3352 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/LangRef.html')
-rw-r--r--docs/LangRef.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html
index 3687113..19fe852 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -1559,7 +1559,8 @@ all else are '<tt>false</tt>'.<p>
When extending an integral value from a type of one signness to another (for
example '<tt>sbyte</tt>' to '<tt>ulong</tt>'), the value is sign-extended if the
<b>source</b> value is signed, and zero-extended if the source value is
-unsigned.<p>
+unsigned. <tt>bool</tt> values are always zero extended into either zero or
+one.<p>
<h5>Example:</h5>
<pre>
@@ -1694,7 +1695,7 @@ more...
<address><a href="mailto:sabre@nondot.org">Chris Lattner</a></address>
<!-- Created: Tue Jan 23 15:19:28 CST 2001 -->
<!-- hhmts start -->
-Last modified: Wed Aug 14 12:54:55 CDT 2002
+Last modified: Thu Aug 15 11:18:37 CDT 2002
<!-- hhmts end -->
</font>
</body></html>