diff options
author | Kazu Hirata <kazu@google.com> | 2020-12-20 09:19:35 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2020-12-20 09:19:35 -0800 |
commit | 3285ee143b7f4b41ab3c37ea4ba10ba00a57756e (patch) | |
tree | a8697afeea9e3fd1928fb314f6c102bf46761bc2 /llvm/lib/CodeGen/StackMaps.cpp | |
parent | 6fa1230594e06bcd32a94a5eeed60d9927a209c9 (diff) | |
download | llvm-3285ee143b7f4b41ab3c37ea4ba10ba00a57756e.zip llvm-3285ee143b7f4b41ab3c37ea4ba10ba00a57756e.tar.gz llvm-3285ee143b7f4b41ab3c37ea4ba10ba00a57756e.tar.bz2 |
[Analysis, IR, CodeGen] Use llvm::erase_if (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/StackMaps.cpp')
-rw-r--r-- | llvm/lib/CodeGen/StackMaps.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/StackMaps.cpp b/llvm/lib/CodeGen/StackMaps.cpp index ee1a4a4..5645e30 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; } |