mirror of
https://github.com/corda/corda.git
synced 2025-01-06 13:08:46 +00:00
avoid clobbering first operand in CombineEvent.compile
This commit is contained in:
parent
cf4e8e7ec2
commit
b9b7ae4003
@ -2911,6 +2911,8 @@ class CombineEvent: public Event {
|
||||
}
|
||||
|
||||
virtual void compile(Context* c) {
|
||||
first->source->freeze(c);
|
||||
|
||||
Site* target;
|
||||
if (c->arch->condensedAddressing()) {
|
||||
maybePreserve(c, stackBefore, localsBefore, secondSize, second,
|
||||
@ -2924,6 +2926,8 @@ class CombineEvent: public Event {
|
||||
addSite(c, stackBefore, localsBefore, resultSize, result, target);
|
||||
}
|
||||
|
||||
first->source->thaw(c);
|
||||
|
||||
// fprintf(stderr, "combine %p and %p into %p\n", first, second, result);
|
||||
apply(c, type, firstSize, first->source, secondSize, second->source,
|
||||
resultSize, target);
|
||||
|
Loading…
Reference in New Issue
Block a user