mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
R600: Allocate memoperand in the MachienFunction so it doesn't leak.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188555 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2328cf155a
commit
d0cad1f3ed
@ -423,9 +423,10 @@ SDValue SITargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) const {
|
||||
Op.getOperand(2)
|
||||
};
|
||||
|
||||
MachineMemOperand *MMO = new MachineMemOperand(MachinePointerInfo(),
|
||||
MachineMemOperand::MOLoad | MachineMemOperand::MOInvariant,
|
||||
VT.getSizeInBits() / 8, 4);
|
||||
MachineMemOperand *MMO = MF.getMachineMemOperand(
|
||||
MachinePointerInfo(),
|
||||
MachineMemOperand::MOLoad | MachineMemOperand::MOInvariant,
|
||||
VT.getSizeInBits() / 8, 4);
|
||||
return DAG.getMemIntrinsicNode(AMDGPUISD::LOAD_CONSTANT, DL,
|
||||
Op->getVTList(), Ops, 2, VT, MMO);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user