llvm.org GIT mirror llvm / d8d1a7c
[asan] Stop leaking X86Operands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208400 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 6 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
191191 Inst.addOperand(MCOperand::CreateReg(X86::RSP));
192192
193193 const MCExpr *Disp = MCConstantExpr::Create(-128, Ctx);
194 X86Operand *Op =
195 X86Operand::CreateMem(0, Disp, X86::RSP, 0, 1, SMLoc(), SMLoc());
194 std::unique_ptr Op(
195 X86Operand::CreateMem(0, Disp, X86::RSP, 0, 1, SMLoc(), SMLoc()));
196196 Op->addMemOperands(Inst, 5);
197197 EmitInstruction(Out, Inst);
198198 }
220220 Inst.addOperand(MCOperand::CreateReg(X86::RSP));
221221
222222 const MCExpr *Disp = MCConstantExpr::Create(128, Ctx);
223 X86Operand *Op =
224 X86Operand::CreateMem(0, Disp, X86::RSP, 0, 1, SMLoc(), SMLoc());
223 std::unique_ptr Op(
224 X86Operand::CreateMem(0, Disp, X86::RSP, 0, 1, SMLoc(), SMLoc()));
225225 Op->addMemOperands(Inst, 5);
226226 EmitInstruction(Out, Inst);
227227 }