diff options
author | Pat Gavlin <pagavlin@microsoft.com> | 2017-06-27 11:34:33 -0700 |
---|---|---|
committer | Pat Gavlin <pagavlin@microsoft.com> | 2017-06-28 10:05:01 -0700 |
commit | 76809bbdbd1300da55cdda2c5187e4637f8b2223 (patch) | |
tree | 4083a3d8eb5c2962b0f302a4ea4efc769013a9d4 /src/jit/earlyprop.cpp | |
parent | 8882080df4e9680cd7d085f3e4ae3e38a8f424ba (diff) | |
download | coreclr-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.cpp | 4 |
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) { |