[BRIGFE] Fix (more) crash with calls with more than 4 args.

It missed a reference which is required because vector expansion
can move the object to another location.

From-SVN: r253382
This commit is contained in:
Henry Linjamäki 2017-10-03 15:16:34 +00:00 committed by Pekka Jääskeläinen
parent 4f8d1d3268
commit 9c53f040cb
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2017-10-03 Henry Linjamäki <henry.linjamaki@parmance.com>
* brigfrontend/brig-branch-inst-handler.cc: Fix (more) crash with
calls with more than 4 args. It missed a reference which is required
because vector expansion can move the object to another location.
2017-09-29 Henry Linjamäki <henry.linjamaki@parmance.com>
* brigfrontend/brig-branch-inst-handler.cc: Fix crash with

View File

@ -70,7 +70,7 @@ brig_branch_inst_handler::operator () (const BrigBase *base)
const BrigOperandOffset32_t *operand_ptr
= (const BrigOperandOffset32_t *) data->bytes;
vec<tree, va_gc> *args = i == 0 ? out_args : in_args;
vec<tree, va_gc> *&args = i == 0 ? out_args : in_args;
while (bytes > 0)
{