mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 03:32:21 +00:00
Use getDepth() and getHeight() instead of accessing the
Depth and Height members directly, as they may not be current. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61121 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
89bf4f2f5e
commit
fccf6dd377
@ -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…
x
Reference in New Issue
Block a user