From 2b4dcbb91d7f31cea653c00597eeb98404acc0f2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 15 Aug 2002 19:36:05 +0000 Subject: [PATCH] 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 --- docs/LangRef.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/LangRef.html b/docs/LangRef.html index 368711356e8..19fe8525b9a 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -1559,7 +1559,8 @@ all else are 'false'.

When extending an integral value from a type of one signness to another (for example 'sbyte' to 'ulong'), the value is sign-extended if the source value is signed, and zero-extended if the source value is -unsigned.

+unsigned. bool values are always zero extended into either zero or +one.

Example:
@@ -1694,7 +1695,7 @@ more...
 
Chris Lattner
-Last modified: Wed Aug 14 12:54:55 CDT 2002 +Last modified: Thu Aug 15 11:18:37 CDT 2002