From 49ead290c1b26bc07d1108cf1eaca16e171694da Mon Sep 17 00:00:00 2001 From: Michelle McDaniel Date: Wed, 18 Jan 2017 20:57:50 -0800 Subject: 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. --- src/jit/importer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3