aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AsmParser/llvmAsmParser.y.cvs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.y.cvs')
-rw-r--r--lib/AsmParser/llvmAsmParser.y.cvs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y.cvs b/lib/AsmParser/llvmAsmParser.y.cvs
index b7b4009..5a824ae 100644
--- a/lib/AsmParser/llvmAsmParser.y.cvs
+++ b/lib/AsmParser/llvmAsmParser.y.cvs
@@ -2581,8 +2581,8 @@ InstructionList : InstructionList Inst {
BBTerminatorInst :
RET ReturnedVal { // Return with a result...
ValueList &VL = *$2;
- if (!VL.empty())
- $$ = new ReturnInst(&VL[0], VL.size());
+ assert(!VL.empty() && "Invalid ret operands!");
+ $$ = new ReturnInst(&VL[0], VL.size());
delete $2;
CHECK_FOR_ERROR
}