fix a -Wbool-conversions warning from clang.

llvm-svn: 105943
This commit is contained in:
Chris Lattner 2010-06-14 18:28:57 +00:00
parent a42e9b4308
commit 16f22c2744

View File

@ -264,7 +264,7 @@ namespace {
//
static const AllocaInst *isDirectAlloca(const Value *V) {
const AllocaInst *AI = dyn_cast<AllocaInst>(V);
if (!AI) return false;
if (!AI) return 0;
if (AI->isArrayAllocation())
return 0; // FIXME: we can also inline fixed size array allocas!
if (AI->getParent() != &AI->getParent()->getParent()->getEntryBlock())