diff options
author | Michelle McDaniel <adiaaida@gmail.com> | 2017-01-18 20:57:50 -0800 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2017-01-18 20:57:50 -0800 |
commit | 49ead290c1b26bc07d1108cf1eaca16e171694da (patch) | |
tree | a732d0f763385b3b71cb61662ea6bad502b2cdc1 | |
parent | 9b777f78c83aa1ef08bcf251e10a48c9b710ed46 (diff) | |
download | coreclr-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.cpp | 2 |
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; } |