llvm.org GIT mirror llvm / c0e6693
[asan] Fix x86-32 asm instrumentation to preserve flags. Patch by Yuri Gorshenin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209280 91177308-0d34-0410-b5e6-96231b3b80d8 Evgeniy Stepanov 6 years ago
1 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
160160 MCSymbolRefExpr::Create(FuncSym, MCSymbolRefExpr::VK_PLT, Ctx);
161161 EmitInstruction(Out, MCInstBuilder(X86::CALLpcrel32).addExpr(FuncExpr));
162162 }
163 EmitInstruction(Out, MCInstBuilder(X86::ADD32ri).addReg(X86::ESP)
164 .addReg(X86::ESP).addImm(4));
163 EmitInstruction(Out, MCInstBuilder(X86::POP32r).addReg(X86::EAX));
165164 EmitInstruction(Out, MCInstBuilder(X86::POP32r).addReg(X86::EAX));
166165 }
167166