summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2019-10-07 18:14:24 +0000
committerJordan Rose <jordan_rose@apple.com>2019-10-07 18:14:24 +0000
commitfdaa74217420729140f1786ea037ac445a724c8e (patch)
tree1b91bbb4f3cb6f58d9a1268c974d708fc7b1089b /llvm/lib/Analysis
parentf385a381404797f5c44298d34c4ba804fad556d3 (diff)
downloadbcm5719-llvm-fdaa74217420729140f1786ea037ac445a724c8e.tar.gz
bcm5719-llvm-fdaa74217420729140f1786ea037ac445a724c8e.zip
Second attempt to add iterator_range::empty()
Doing this makes MSVC complain that `empty(someRange)` could refer to either C++17's std::empty or LLVM's llvm::empty, which previously we avoided via SFINAE because std::empty is defined in terms of an empty member rather than begin and end. So, switch callers over to the new method as it is added. https://reviews.llvm.org/D68439 llvm-svn: 373935
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/LazyCallGraph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LazyCallGraph.cpp b/llvm/lib/Analysis/LazyCallGraph.cpp
index cba8db49f02..ef31c1e0ba8 100644
--- a/llvm/lib/Analysis/LazyCallGraph.cpp
+++ b/llvm/lib/Analysis/LazyCallGraph.cpp
@@ -632,7 +632,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 (empty(MergeRange)) {
+ if (MergeRange.empty()) {
// Now that the SCC structure is finalized, flip the kind to call.
SourceN->setEdgeKind(TargetN, Edge::Call);
return false; // No new cycle.
OpenPOWER on IntegriCloud