diff options
author | Kazu Hirata <kazu@google.com> | 2023-03-15 18:06:32 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-03-15 18:06:32 -0700 |
commit | 398af9b43bbfbff291faac5bce524eca675d6caf (patch) | |
tree | 711f03500349e657ca0004eb02e02aa10391f609 /llvm/lib/MC/MCWin64EH.cpp | |
parent | c7c1d531b9a77a735183f67a6d8b538691284f92 (diff) | |
download | llvm-398af9b43bbfbff291faac5bce524eca675d6caf.zip llvm-398af9b43bbfbff291faac5bce524eca675d6caf.tar.gz llvm-398af9b43bbfbff291faac5bce524eca675d6caf.tar.bz2 |
[llvm] Use *{Map,Set}::contains (NFC)
Diffstat (limited to 'llvm/lib/MC/MCWin64EH.cpp')
-rw-r--r-- | llvm/lib/MC/MCWin64EH.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCWin64EH.cpp b/llvm/lib/MC/MCWin64EH.cpp index 1a55722..a2d61da 100644 --- a/llvm/lib/MC/MCWin64EH.cpp +++ b/llvm/lib/MC/MCWin64EH.cpp @@ -1089,7 +1089,7 @@ static void ARM64ProcessEpilogs(WinEH::FrameInfo *info, FindMatchingEpilog(EpilogInstrs, AddedEpilogs, info); int PrologOffset; if (MatchingEpilog) { - assert(EpilogInfo.find(MatchingEpilog) != EpilogInfo.end() && + assert(EpilogInfo.contains(MatchingEpilog) && "Duplicate epilog not found"); EpilogInfo[EpilogStart] = EpilogInfo.lookup(MatchingEpilog); // Clear the unwind codes in the EpilogMap, so that they don't get output @@ -2369,7 +2369,7 @@ static void ARMEmitUnwindInfo(MCStreamer &streamer, WinEH::FrameInfo *info, FindMatchingEpilog(EpilogInstrs, AddedEpilogs, info); int PrologOffset; if (MatchingEpilog) { - assert(EpilogInfo.find(MatchingEpilog) != EpilogInfo.end() && + assert(EpilogInfo.contains(MatchingEpilog) && "Duplicate epilog not found"); EpilogInfo[EpilogStart] = EpilogInfo.lookup(MatchingEpilog); // Clear the unwind codes in the EpilogMap, so that they don't get output @@ -2449,7 +2449,7 @@ static void ARMEmitUnwindInfo(MCStreamer &streamer, WinEH::FrameInfo *info, else OffsetExpr = GetSubDivExpr(streamer, EpilogStart, info->Begin, 2); - assert(info->EpilogMap.find(EpilogStart) != info->EpilogMap.end()); + assert(info->EpilogMap.contains(EpilogStart)); unsigned Condition = info->EpilogMap[EpilogStart].Condition; assert(Condition <= 0xf); |