When truncating to bool, it is necessary to & with 1 for all casts that
authorReid Spencer <rspencer@reidspencer.com>
Mon, 27 Nov 2006 18:51:06 +0000 (18:51 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 27 Nov 2006 18:51:06 +0000 (18:51 +0000)
commit639cf7d380b4e89542d8c29a93605b905c203a1c
tree85575f2010e31a4241a4384e54062d3d3933e138
parenteb7313805b06a9751e382fb70751290f49e334c1
When truncating to bool, it is necessary to & with 1 for all casts that
can result in a bool. Previously PtrToInt, FPToUI and FPToSI were missing
this operation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31938 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/CBackend/CBackend.cpp
lib/Target/CBackend/Writer.cpp