Use getDepth() and getHeight() instead of accessing the

Depth and Height members directly, as they may not be
current.

llvm-svn: 61121
This commit is contained in:
Dan Gohman 2008-12-17 04:25:52 +00:00
parent c50143a539
commit 2a16bbe394
1 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ void SUnit::setHeightDirty() {
/// fact that this node's depth just increased.
///
void SUnit::setDepthToAtLeast(unsigned NewDepth) {
if (NewDepth <= Depth)
if (NewDepth <= getDepth())
return;
setDepthDirty();
Depth = NewDepth;
@ -161,7 +161,7 @@ void SUnit::setDepthToAtLeast(unsigned NewDepth) {
/// fact that this node's height just increased.
///
void SUnit::setHeightToAtLeast(unsigned NewHeight) {
if (NewHeight <= Height)
if (NewHeight <= getHeight())
return;
setHeightDirty();
Height = NewHeight;