summaryrefslogtreecommitdiff
path: root/src/jit/assertionprop.cpp
diff options
context:
space:
mode:
authorSergey Andreenko <seandree@microsoft.com>2019-04-10 12:29:46 -0700
committerSergey Andreenko <seandree@microsoft.com>2019-04-10 12:29:46 -0700
commit696a3edc3cc3bcbcf083673996f67828562af056 (patch)
tree7f0bf95127f592eeda9437b090693b36769f65de /src/jit/assertionprop.cpp
parent0ee00c31e61abb61863fd865d96f0c1536f04927 (diff)
downloadcoreclr-696a3edc3cc3bcbcf083673996f67828562af056.tar.gz
coreclr-696a3edc3cc3bcbcf083673996f67828562af056.tar.bz2
coreclr-696a3edc3cc3bcbcf083673996f67828562af056.zip
Update the comment.
Diffstat (limited to 'src/jit/assertionprop.cpp')
-rw-r--r--src/jit/assertionprop.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/jit/assertionprop.cpp b/src/jit/assertionprop.cpp
index 85df205497..1b48491e73 100644
--- a/src/jit/assertionprop.cpp
+++ b/src/jit/assertionprop.cpp
@@ -2485,14 +2485,11 @@ GenTree* Compiler::optVNConstantPropOnTree(BasicBlock* block, GenTree* tree)
case TYP_REF:
{
assert(vnStore->ConstantValue<size_t>(vnCns) == 0);
+ // Support onle ref(ref(0)), do not support other forms (e.g byref(ref(0)).
if (tree->TypeGet() == TYP_REF)
{
conValTree = gtNewIconNode(0, TYP_REF);
}
- else
- {
- // Do not support such optimization (e.g byref(ref(0)).
- }
}
break;