summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichelle McDaniel <adiaaida@gmail.com>2017-01-18 20:57:50 -0800
committerJan Kotas <jkotas@microsoft.com>2017-01-18 20:57:50 -0800
commit49ead290c1b26bc07d1108cf1eaca16e171694da (patch)
treea732d0f763385b3b71cb61662ea6bad502b2cdc1
parent9b777f78c83aa1ef08bcf251e10a48c9b710ed46 (diff)
downloadcoreclr-49ead290c1b26bc07d1108cf1eaca16e171694da.tar.gz
coreclr-49ead290c1b26bc07d1108cf1eaca16e171694da.tar.bz2
coreclr-49ead290c1b26bc07d1108cf1eaca16e171694da.zip
Fix PInvoke Inline decision (#8975)
Originally, the condition was !impCanPInvokeInline, but when change 1e63ca0 pulled out impCanPInvokeInlineCall, the condition was flipped. This was exposed by an internal debugger test. Fixes DevDiv 366669.
-rw-r--r--src/jit/importer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jit/importer.cpp b/src/jit/importer.cpp
index 1d9144b68f..026628dbee 100644
--- a/src/jit/importer.cpp
+++ b/src/jit/importer.cpp
@@ -5582,7 +5582,7 @@ void Compiler::impCheckForPInvokeCall(
// profitability checks
if (!(opts.jitFlags->IsSet(JitFlags::JIT_FLAG_IL_STUB) && IsTargetAbi(CORINFO_CORERT_ABI)))
{
- if (impCanPInvokeInline())
+ if (!impCanPInvokeInline())
{
return;
}