mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
fix a -Wbool-conversions warning from clang.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105943 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
98cdfc779d
commit
ef66df4da8
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user