mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
call c->arch->plan in CallEvent ctor to ensure the address operand is placed into the proper operand type for the call instruction
This commit is contained in:
parent
0832c740fc
commit
2554673dda
@ -2251,8 +2251,19 @@ class CallEvent: public Event {
|
||||
fprintf(stderr, "address read %p\n", address);
|
||||
}
|
||||
|
||||
addRead(c, this, address, read
|
||||
(c, SiteMask(~0, registerMask, AnyFrameIndex)));
|
||||
{ bool thunk;
|
||||
uint8_t typeMask;
|
||||
uint64_t planRegisterMask;
|
||||
c->arch->plan
|
||||
((flags & Compiler::Aligned) ? AlignedCall : Call, BytesPerWord,
|
||||
&typeMask, &planRegisterMask, &thunk);
|
||||
|
||||
assert(c, thunk == 0);
|
||||
|
||||
addRead(c, this, address, read
|
||||
(c, SiteMask
|
||||
(typeMask, registerMask & planRegisterMask, AnyFrameIndex)));
|
||||
}
|
||||
|
||||
int footprint = stackArgumentFootprint;
|
||||
for (Stack* s = stackBefore; s; s = s->next) {
|
||||
|
Loading…
Reference in New Issue
Block a user