diff options
author | Andrew Trick <atrick@apple.com> | 2011-08-10 00:49:12 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-08-10 00:49:12 +0000 |
commit | 306afdf443a0e2d5d89c1a3ece00cfe18be1c4c4 (patch) | |
tree | fd1d75c2ef9a92c6fd96cf9f88a93f643b2125fd /include | |
parent | b1eede12818d91a32adac928c6fffcf6d2800dc0 (diff) | |
download | external_llvm-306afdf443a0e2d5d89c1a3ece00cfe18be1c4c4.zip external_llvm-306afdf443a0e2d5d89c1a3ece00cfe18be1c4c4.tar.gz external_llvm-306afdf443a0e2d5d89c1a3ece00cfe18be1c4c4.tar.bz2 |
Cleanup. Avoid relying on specialization of std::distance.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/LoopInfo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h index 48c59ac..7ebcd6b 100644 --- a/include/llvm/Analysis/LoopInfo.h +++ b/include/llvm/Analysis/LoopInfo.h @@ -134,9 +134,9 @@ public: block_iterator block_begin() const { return Blocks.begin(); } block_iterator block_end() const { return Blocks.end(); } - /// getNumBlocks - Get the number of blocks in this loop. + /// getNumBlocks - Get the number of blocks in this loop in constant time. unsigned getNumBlocks() const { - return std::distance(block_begin(), block_end()); + return Blocks.size(); } /// isLoopExiting - True if terminator in the block can branch to another |