[llvm] 47c76e7 - [SPIRV] Use llvm::find (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 22 21:19:26 PST 2024
Author: Kazu Hirata
Date: 2024-01-22T21:19:15-08:00
New Revision: 47c76e7aba0cf823f7fa883e0d374ad1a160067a
URL: https://github.com/llvm/llvm-project/commit/47c76e7aba0cf823f7fa883e0d374ad1a160067a
DIFF: https://github.com/llvm/llvm-project/commit/47c76e7aba0cf823f7fa883e0d374ad1a160067a.diff
LOG: [SPIRV] Use llvm::find (NFC)
Added:
Modified:
llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp b/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
index 7222a93357b79fe..370da046984f936 100644
--- a/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
@@ -410,7 +410,7 @@ void SPIRV::RequirementHandler::pruneCapabilities(
const CapabilityList &ToPrune) {
for (const auto &Cap : ToPrune) {
AllCaps.insert(Cap);
- auto FoundIndex = std::find(MinimalCaps.begin(), MinimalCaps.end(), Cap);
+ auto FoundIndex = llvm::find(MinimalCaps, Cap);
if (FoundIndex != MinimalCaps.end())
MinimalCaps.erase(FoundIndex);
CapabilityList ImplicitDecls =
More information about the llvm-commits
mailing list