From 3285ee143b7f4b41ab3c37ea4ba10ba00a57756e Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 20 Dec 2020 09:19:35 -0800 Subject: [Analysis, IR, CodeGen] Use llvm::erase_if (NFC) --- llvm/lib/CodeGen/StackMaps.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'llvm/lib/CodeGen/StackMaps.cpp') diff --git a/llvm/lib/CodeGen/StackMaps.cpp b/llvm/lib/CodeGen/StackMaps.cpp index ee1a4a47b4cc..5645e3062d41 100644 --- a/llvm/lib/CodeGen/StackMaps.cpp +++ b/llvm/lib/CodeGen/StackMaps.cpp @@ -361,10 +361,7 @@ StackMaps::parseRegisterLiveOutMask(const uint32_t *Mask) const { } } - LiveOuts.erase( - llvm::remove_if(LiveOuts, - [](const LiveOutReg &LO) { return LO.Reg == 0; }), - LiveOuts.end()); + llvm::erase_if(LiveOuts, [](const LiveOutReg &LO) { return LO.Reg == 0; }); return LiveOuts; } -- cgit v1.2.3