mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
fix use of clobbered stack register in multianewarray
This commit is contained in:
parent
e81a534986
commit
ce2f5dd375
@ -2997,12 +2997,17 @@ compile(MyThread* t, Frame* initialFrame, unsigned ip)
|
||||
if (UNLIKELY(t->exception)) return;
|
||||
PROTECT(t, class_);
|
||||
|
||||
Operand* stack = c->temporary();
|
||||
c->mov(c->stack(), stack);
|
||||
|
||||
c->indirectCall
|
||||
(c->constant(reinterpret_cast<intptr_t>(makeMultidimensionalArray)),
|
||||
frame->trace(0, false),
|
||||
4, c->thread(), frame->append(class_), c->stack(),
|
||||
4, c->thread(), frame->append(class_), stack,
|
||||
c->constant(dimensions));
|
||||
|
||||
c->release(stack);
|
||||
|
||||
Operand* result = ::result(c);
|
||||
|
||||
frame->pop(dimensions);
|
||||
|
Loading…
Reference in New Issue
Block a user