mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-03 01:18:47 +00:00
Use a sane mechanism for that assert.
llvm-svn: 116249
This commit is contained in:
parent
0888ccaa19
commit
e1574aa60a
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user