summaryrefslogtreecommitdiff
path: root/src/jit/assertionprop.cpp
diff options
context:
space:
mode:
authorBruce Forstall <brucefo@microsoft.com>2017-11-22 14:05:09 -0800
committerBruce Forstall <brucefo@microsoft.com>2017-11-22 14:05:09 -0800
commita480afbd9c347f3bc7ffc62c6ffda08bf891882c (patch)
treeec0b983722258d7b28d3c1c8b416b010f726b03c /src/jit/assertionprop.cpp
parent30d20fd832b4dba9e6d5f9c77f88d8b3ccd1066e (diff)
downloadcoreclr-a480afbd9c347f3bc7ffc62c6ffda08bf891882c.tar.gz
coreclr-a480afbd9c347f3bc7ffc62c6ffda08bf891882c.tar.bz2
coreclr-a480afbd9c347f3bc7ffc62c6ffda08bf891882c.zip
Clean up `GTF_CALL_VIRT_KIND_MASK` and related usage
Use the existing accessor functions instead of checking the bits directly.
Diffstat (limited to 'src/jit/assertionprop.cpp')
-rw-r--r--src/jit/assertionprop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jit/assertionprop.cpp b/src/jit/assertionprop.cpp
index 77899c7482..912ec07fb1 100644
--- a/src/jit/assertionprop.cpp
+++ b/src/jit/assertionprop.cpp
@@ -2093,7 +2093,7 @@ void Compiler::optAssertionGen(GenTreePtr tree)
case GT_CALL:
// A virtual call can create a non-null assertion. We transform some virtual calls into non-virtual calls
// with a GTF_CALL_NULLCHECK flag set.
- if ((tree->gtFlags & GTF_CALL_NULLCHECK) || ((tree->gtFlags & GTF_CALL_VIRT_KIND_MASK) != GTF_CALL_NONVIRT))
+ if ((tree->gtFlags & GTF_CALL_NULLCHECK) || tree->AsCall()->IsVirtual())
{
// Retrieve the 'this' arg
GenTreePtr thisArg = gtGetThisArg(tree->AsCall());