mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-17 17:06:59 +00:00
Insert IMPLICIT_DEF instructions at the current insert position, not
at the end of the block. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108045 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
68eec39bca
commit
3cd26a2909
@ -246,7 +246,7 @@ unsigned InstrEmitter::getVR(SDValue Op,
|
||||
const TargetRegisterClass *RC = TLI->getRegClassFor(Op.getValueType());
|
||||
VReg = MRI->createVirtualRegister(RC);
|
||||
}
|
||||
BuildMI(MBB, Op.getDebugLoc(),
|
||||
BuildMI(*MBB, InsertPos, Op.getDebugLoc(),
|
||||
TII->get(TargetOpcode::IMPLICIT_DEF), VReg);
|
||||
return VReg;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user