projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
041e111
)
Fix DevDiv_543045 (#16167)
author
Sergey Andreenko
<seandree@microsoft.com>
Fri, 2 Feb 2018 00:31:46 +0000
(16:31 -0800)
committer
GitHub
<noreply@github.com>
Fri, 2 Feb 2018 00:31:46 +0000
(16:31 -0800)
src/jit/importer.cpp
patch
|
blob
|
history
diff --git
a/src/jit/importer.cpp
b/src/jit/importer.cpp
index
e330ff0
..
2fa5f47
100644
(file)
--- a/
src/jit/importer.cpp
+++ b/
src/jit/importer.cpp
@@
-3670,6
+3670,11
@@
GenTree* Compiler::impIntrinsic(GenTree* newobjThis,
impPopStack();
GenTree* typeHandleOp =
impTokenToHandle(pConstrainedResolvedToken, nullptr, TRUE /* mustRestoreHandle */);
+ if (typeHandleOp == nullptr)
+ {
+ assert(compDonotInline());
+ return nullptr;
+ }
GenTreeArgList* helperArgs = gtNewArgList(typeHandleOp);
GenTree* runtimeType =
gtNewHelperCallNode(CORINFO_HELP_TYPEHANDLE_TO_RUNTIMETYPE, TYP_REF, helperArgs);