summaryrefslogtreecommitdiff
path: root/src/jit/earlyprop.cpp
diff options
context:
space:
mode:
authorPat Gavlin <pagavlin@microsoft.com>2017-06-27 11:34:33 -0700
committerPat Gavlin <pagavlin@microsoft.com>2017-06-28 10:05:01 -0700
commit76809bbdbd1300da55cdda2c5187e4637f8b2223 (patch)
tree4083a3d8eb5c2962b0f302a4ea4efc769013a9d4 /src/jit/earlyprop.cpp
parent8882080df4e9680cd7d085f3e4ae3e38a8f424ba (diff)
downloadcoreclr-76809bbdbd1300da55cdda2c5187e4637f8b2223.tar.gz
coreclr-76809bbdbd1300da55cdda2c5187e4637f8b2223.tar.bz2
coreclr-76809bbdbd1300da55cdda2c5187e4637f8b2223.zip
Convert lva{Inc,Dec}RefCntsCB to a visitor.
Diffstat (limited to 'src/jit/earlyprop.cpp')
-rw-r--r--src/jit/earlyprop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jit/earlyprop.cpp b/src/jit/earlyprop.cpp
index 51de631d19..7f3296121a 100644
--- a/src/jit/earlyprop.cpp
+++ b/src/jit/earlyprop.cpp
@@ -325,7 +325,7 @@ bool Compiler::optEarlyPropRewriteTree(GenTreePtr tree)
actualValCopy = gtNewLargeOperNode(GT_ADD, TYP_INT);
}
- fgWalkTreePre(&tree, Compiler::lvaDecRefCntsCB, (void*)this, true);
+ DecLclVarRefCountsVisitor::WalkTree(this, tree);
actualValCopy->CopyFrom(actualVal, this);
actualValCopy->gtType = origType;
@@ -334,7 +334,7 @@ bool Compiler::optEarlyPropRewriteTree(GenTreePtr tree)
actualValCopy->LabelIndex(this);
}
- fgWalkTreePre(&actualValCopy, Compiler::lvaIncRefCntsCB, (void*)this, true);
+ IncLclVarRefCountsVisitor::WalkTree(this, actualValCopy);
if (actualValCopy != tree)
{