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:
parent
c50143a539
commit
2a16bbe394
|
@ -150,7 +150,7 @@ void SUnit::setHeightDirty() {
|
||||||
/// fact that this node's depth just increased.
|
/// fact that this node's depth just increased.
|
||||||
///
|
///
|
||||||
void SUnit::setDepthToAtLeast(unsigned NewDepth) {
|
void SUnit::setDepthToAtLeast(unsigned NewDepth) {
|
||||||
if (NewDepth <= Depth)
|
if (NewDepth <= getDepth())
|
||||||
return;
|
return;
|
||||||
setDepthDirty();
|
setDepthDirty();
|
||||||
Depth = NewDepth;
|
Depth = NewDepth;
|
||||||
|
@ -161,7 +161,7 @@ void SUnit::setDepthToAtLeast(unsigned NewDepth) {
|
||||||
/// fact that this node's height just increased.
|
/// fact that this node's height just increased.
|
||||||
///
|
///
|
||||||
void SUnit::setHeightToAtLeast(unsigned NewHeight) {
|
void SUnit::setHeightToAtLeast(unsigned NewHeight) {
|
||||||
if (NewHeight <= Height)
|
if (NewHeight <= getHeight())
|
||||||
return;
|
return;
|
||||||
setHeightDirty();
|
setHeightDirty();
|
||||||
Height = NewHeight;
|
Height = NewHeight;
|
||||||
|
|
Loading…
Reference in New Issue