Fix ABISysV_s390x::GetArgumentValues

This routine contained a stray "return false;" making part of the code
never executed.  Also, the stack offset where to find on-stack arguments
was incorrect.

llvm-svn: 266417
This commit is contained in:
Ulrich Weigand 2016-04-15 09:14:32 +00:00
parent 5c17454cd6
commit 2b6c791930
1 changed files with 1 additions and 2 deletions

View File

@ -365,7 +365,7 @@ ABISysV_s390x::GetArgumentValues(Thread &thread, ValueList &values) const
if (!sp)
return false;
addr_t current_stack_argument = sp;
addr_t current_stack_argument = sp + 160;
uint32_t argument_register_ids[5];
@ -382,7 +382,6 @@ ABISysV_s390x::GetArgumentValues(Thread &thread, ValueList &values) const
unsigned int current_argument_register = 0;
return false;
for (value_index = 0; value_index < num_values; ++value_index)
{
Value *value = values.GetValueAtIndex(value_index);