diff options
author | Matthias Braun <matze@braunis.de> | 2018-10-31 00:23:23 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2018-10-31 00:23:23 +0000 |
commit | 9fd397b423ba442808957e65e3ad25a07cd203e4 (patch) | |
tree | 7145d100b0a62cf322449093f203eb7c9e80c3b8 /llvm/lib/Analysis/LazyCallGraph.cpp | |
parent | ac0ba8c52493012daabb73512a5739394c37a2dc (diff) | |
download | llvm-9fd397b423ba442808957e65e3ad25a07cd203e4.zip llvm-9fd397b423ba442808957e65e3ad25a07cd203e4.tar.gz llvm-9fd397b423ba442808957e65e3ad25a07cd203e4.tar.bz2 |
ADT/STLExtras: Introduce llvm::empty; NFC
This is modeled after C++17 std::empty().
Differential Revision: https://reviews.llvm.org/D53909
llvm-svn: 345679
Diffstat (limited to 'llvm/lib/Analysis/LazyCallGraph.cpp')
-rw-r--r-- | llvm/lib/Analysis/LazyCallGraph.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LazyCallGraph.cpp b/llvm/lib/Analysis/LazyCallGraph.cpp index b1d585b..3f22ada 100644 --- a/llvm/lib/Analysis/LazyCallGraph.cpp +++ b/llvm/lib/Analysis/LazyCallGraph.cpp @@ -619,7 +619,7 @@ LazyCallGraph::RefSCC::switchInternalEdgeToCall( // If the merge range is empty, then adding the edge didn't actually form any // new cycles. We're done. - if (MergeRange.begin() == MergeRange.end()) { + if (empty(MergeRange)) { // Now that the SCC structure is finalized, flip the kind to call. SourceN->setEdgeKind(TargetN, Edge::Call); return false; // No new cycle. |