From 16f22c2744016be1a670788875d673c858d79fa3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 14 Jun 2010 18:28:57 +0000 Subject: [PATCH] fix a -Wbool-conversions warning from clang. llvm-svn: 105943 --- lib/Target/CBackend/CBackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 55b8aaa4179..fa145b24dfb 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -264,7 +264,7 @@ namespace { // static const AllocaInst *isDirectAlloca(const Value *V) { const AllocaInst *AI = dyn_cast(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())