mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Cleanup. Avoid relying on specialization of std::distance.
llvm-svn: 137191
This commit is contained in:
parent
3ed0cd3cb6
commit
c7ba3c5cd2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user