aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-03-15 18:06:32 -0700
committerKazu Hirata <kazu@google.com>2023-03-15 18:06:32 -0700
commit398af9b43bbfbff291faac5bce524eca675d6caf (patch)
tree711f03500349e657ca0004eb02e02aa10391f609 /llvm/lib/CodeGen/MachineFunction.cpp
parentc7c1d531b9a77a735183f67a6d8b538691284f92 (diff)
downloadllvm-398af9b43bbfbff291faac5bce524eca675d6caf.zip
llvm-398af9b43bbfbff291faac5bce524eca675d6caf.tar.gz
llvm-398af9b43bbfbff291faac5bce524eca675d6caf.tar.bz2
[llvm] Use *{Map,Set}::contains (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index a0e2043..4a90849 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -427,8 +427,7 @@ void MachineFunction::deleteMachineInstr(MachineInstr *MI) {
// be triggered during the implementation of support for the
// call site info of a new architecture. If the assertion is triggered,
// back trace will tell where to insert a call to updateCallSiteInfo().
- assert((!MI->isCandidateForCallSiteEntry() ||
- CallSitesInfo.find(MI) == CallSitesInfo.end()) &&
+ assert((!MI->isCandidateForCallSiteEntry() || !CallSitesInfo.contains(MI)) &&
"Call site info was not updated!");
// Strip it for parts. The operand array and the MI object itself are
// independently recyclable.