forked from OSchip/llvm-project
Fix build breakage caused by 66a1b83bf9
This commit is contained in:
parent
247e185dd5
commit
dae64d8f42
|
@ -1034,7 +1034,7 @@ TargetLoweringBase::emitPatchPoint(MachineInstr &InitialMI,
|
||||||
|
|
||||||
for (auto &MO : MI->operands()) {
|
for (auto &MO : MI->operands()) {
|
||||||
if (!MO.isFI()) {
|
if (!MO.isFI()) {
|
||||||
MIB.add(MI->getOperand(OperIdx));
|
MIB.add(MO);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1051,13 +1051,13 @@ TargetLoweringBase::emitPatchPoint(MachineInstr &InitialMI,
|
||||||
assert(MI->getOpcode() == TargetOpcode::STATEPOINT && "sanity");
|
assert(MI->getOpcode() == TargetOpcode::STATEPOINT && "sanity");
|
||||||
MIB.addImm(StackMaps::IndirectMemRefOp);
|
MIB.addImm(StackMaps::IndirectMemRefOp);
|
||||||
MIB.addImm(MFI.getObjectSize(FI));
|
MIB.addImm(MFI.getObjectSize(FI));
|
||||||
MIB.add(MI->getOperand(OperIdx));
|
MIB.add(MO);
|
||||||
MIB.addImm(0);
|
MIB.addImm(0);
|
||||||
} else {
|
} else {
|
||||||
// direct-mem-ref tag, #FI, offset.
|
// direct-mem-ref tag, #FI, offset.
|
||||||
// Used by patchpoint, and direct alloca arguments to statepoints
|
// Used by patchpoint, and direct alloca arguments to statepoints
|
||||||
MIB.addImm(StackMaps::DirectMemRefOp);
|
MIB.addImm(StackMaps::DirectMemRefOp);
|
||||||
MIB.add(MI->getOperand(OperIdx));
|
MIB.add(MO);
|
||||||
MIB.addImm(0);
|
MIB.addImm(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue