diff options
author | Bruce Forstall <brucefo@microsoft.com> | 2017-11-22 14:05:09 -0800 |
---|---|---|
committer | Bruce Forstall <brucefo@microsoft.com> | 2017-11-22 14:05:09 -0800 |
commit | a480afbd9c347f3bc7ffc62c6ffda08bf891882c (patch) | |
tree | ec0b983722258d7b28d3c1c8b416b010f726b03c /src/jit/codegenlegacy.cpp | |
parent | 30d20fd832b4dba9e6d5f9c77f88d8b3ccd1066e (diff) | |
download | coreclr-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/codegenlegacy.cpp')
-rw-r--r-- | src/jit/codegenlegacy.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/jit/codegenlegacy.cpp b/src/jit/codegenlegacy.cpp index d24e31414b..3a0c4e3a1a 100644 --- a/src/jit/codegenlegacy.cpp +++ b/src/jit/codegenlegacy.cpp @@ -18277,8 +18277,7 @@ regMaskTP CodeGen::genCodeForCall(GenTreeCall* call, bool valUsed) #endif #ifdef _TARGET_ARM_ - if (compiler->opts.ShouldUsePInvokeHelpers() && (call->gtFlags & GTF_CALL_UNMANAGED) && - ((call->gtFlags & GTF_CALL_VIRT_KIND_MASK) == GTF_CALL_NONVIRT)) + if (compiler->opts.ShouldUsePInvokeHelpers() && (call->gtFlags & GTF_CALL_UNMANAGED) && !call->IsVirtual()) { (void)genPInvokeCallProlog(nullptr, 0, (CORINFO_METHOD_HANDLE) nullptr, nullptr); } |