summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2016-06-10 21:18:39 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2016-06-10 21:18:39 +0000
commit39c226fdba889c61cfc82b7a34a25c813226c2c4 (patch)
tree97dd43304323b7a20b90fddf8bdce22d730231ac /llvm/lib/IR
parent9e3ee13a1cc91152ae0c6880f1f2866c50275a10 (diff)
downloadbcm5719-llvm-39c226fdba889c61cfc82b7a34a25c813226c2c4.tar.gz
bcm5719-llvm-39c226fdba889c61cfc82b7a34a25c813226c2c4.zip
[STLExtras] Introduce and use llvm::count_if; NFC
(This is split out from was D21115) llvm-svn: 272435
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r--llvm/lib/IR/Metadata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Metadata.cpp b/llvm/lib/IR/Metadata.cpp
index 865c68a2ef1..5d84bb75cfb 100644
--- a/llvm/lib/IR/Metadata.cpp
+++ b/llvm/lib/IR/Metadata.cpp
@@ -502,7 +502,7 @@ static bool isOperandUnresolved(Metadata *Op) {
void MDNode::countUnresolvedOperands() {
assert(NumUnresolved == 0 && "Expected unresolved ops to be uncounted");
assert(isUniqued() && "Expected this to be uniqued");
- NumUnresolved = std::count_if(op_begin(), op_end(), isOperandUnresolved);
+ NumUnresolved = count_if(operands(), isOperandUnresolved);
}
void MDNode::makeUniqued() {
OpenPOWER on IntegriCloud