mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-10 22:46:25 +00:00
Add assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47641 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bf931bb094
commit
43a1bb3984
@ -2581,8 +2581,8 @@ InstructionList : InstructionList Inst {
|
|||||||
BBTerminatorInst :
|
BBTerminatorInst :
|
||||||
RET ReturnedVal { // Return with a result...
|
RET ReturnedVal { // Return with a result...
|
||||||
ValueList &VL = *$2;
|
ValueList &VL = *$2;
|
||||||
if (!VL.empty())
|
assert(!VL.empty() && "Invalid ret operands!");
|
||||||
$$ = new ReturnInst(&VL[0], VL.size());
|
$$ = new ReturnInst(&VL[0], VL.size());
|
||||||
delete $2;
|
delete $2;
|
||||||
CHECK_FOR_ERROR
|
CHECK_FOR_ERROR
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user