diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2016-08-12 04:32:29 +0000 | 
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2016-08-12 04:32:29 +0000 | 
| commit | 0da5afe7172f254226c63f8dcb92d6729d02b959 (patch) | |
| tree | f68145bbd97df905b00d6682247be1a5cbb148f5 /llvm/lib | |
| parent | fbcec353ab6427a20c1232ab21166acd629398b6 (diff) | |
| download | bcm5719-llvm-0da5afe7172f254226c63f8dcb92d6729d02b959.tar.gz bcm5719-llvm-0da5afe7172f254226c63f8dcb92d6729d02b959.zip  | |
Use the range variant of count_if instead of unpacking begin/end
No functionality change is intended.
llvm-svn: 278474
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMISelLowering.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index c341794ab5e..308d974b7fa 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -1857,7 +1857,7 @@ ARMTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,      auto *BB = CLI.CS->getParent();      bool PreferIndirect =          Subtarget->isThumb() && MF.getFunction()->optForMinSize() && -        std::count_if(GV->user_begin(), GV->user_end(), [&BB](const User *U) { +        count_if(GV->users(), [&BB](const User *U) {            return isa<Instruction>(U) && cast<Instruction>(U)->getParent() == BB;          }) > 2;  | 

