Rework braindead conditionals I put in yesterday.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111974 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2010-08-24 22:07:27 +00:00
parent 9f782d4dcf
commit e24d66f525

View File

@ -365,10 +365,7 @@ bool ARMFastISel::ARMLoadAlloca(const Instruction *I) {
Value *Op0 = I->getOperand(0);
// Verify it's an alloca.
const Instruction *Inst = dyn_cast<Instruction>(Op0);
if (!Inst || Inst->getOpcode() != Instruction::Alloca) return false;
const AllocaInst *AI = cast<AllocaInst>(Op0);
if (const AllocaInst *AI = dyn_cast<AllocaInst>(Op0)) {
DenseMap<const AllocaInst*, int>::iterator SI =
FuncInfo.StaticAllocaMap.find(AI);
@ -380,6 +377,7 @@ bool ARMFastISel::ARMLoadAlloca(const Instruction *I) {
UpdateValueMap(I, ResultReg);
return true;
}
}
return false;
}