mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-05 02:28:51 +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;
|
break;
|
||||||
case Instruction::Alloca: {
|
case Instruction::Alloca: {
|
||||||
// Don't handle dynamic allocas.
|
// Don't handle dynamic allocas.
|
||||||
if (FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(Obj)))
|
assert(!FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(Obj)) &&
|
||||||
assert(false && "Alloca should have been handled earlier!");
|
"Alloca should have been handled earlier!");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user