Use a sane mechanism for that assert.

llvm-svn: 116249
This commit is contained in:
Eric Christopher 2010-10-11 22:01:22 +00:00
parent 33ddf69fb3
commit d42340ecfd
1 changed files with 2 additions and 2 deletions

View File

@ -590,8 +590,8 @@ bool ARMFastISel::ARMComputeRegOffset(const Value *Obj, unsigned &Reg,
break;
case Instruction::Alloca: {
// Don't handle dynamic allocas.
if (FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(Obj)))
assert(false && "Alloca should have been handled earlier!");
assert(!FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(Obj)) &&
"Alloca should have been handled earlier!");
return false;
}
}