]> granicus.if.org Git - clang/commit
IRgen: Fix a horrible bug in pointer to bool conversion, which we were treating
authorDaniel Dunbar <daniel@zuster.org>
Wed, 25 Aug 2010 03:32:38 +0000 (03:32 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 25 Aug 2010 03:32:38 +0000 (03:32 +0000)
commit89f176d89aefe8a23bbf0ace9b329562f4970d5f
tree918d42b6d0906c29394b4a3ba3976ac9e5bd21f3
parenta8f28da6265950eea768f7e4ade15e4ebaddd56f
IRgen: Fix a horrible bug in pointer to bool conversion, which we were treating
as a truncation not a comparison to null.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112021 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprScalar.cpp
test/CodeGen/_Bool-conversion.c [new file with mode: 0644]