Add an example to the trunc instruction to clarify trunc to bool.
Example provided by Baptiste Lepilleur.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32931 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/docs/LangRef.html b/docs/LangRef.html
index 5e03030..0c004e4 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -2701,6 +2701,7 @@
<pre>
%X = trunc i32 257 to i8 <i>; yields i8:1</i>
%Y = trunc i32 123 to bool <i>; yields bool:true</i>
+ %Y = trunc i32 122 to bool <i>; yields bool:false</i>
</pre>
</div>