diff options
author | Carol Eidt <carol.eidt@microsoft.com> | 2019-05-31 11:02:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-31 11:02:02 -0700 |
commit | 0d21b57657f8135622797f0db29460c975dd2339 (patch) | |
tree | 8f7d361c79355f08c55e700ee64d7ee35310683d /src/jit/morph.cpp | |
parent | 795f2fd2a67047519b477cd1776626368c88e73c (diff) | |
download | coreclr-0d21b57657f8135622797f0db29460c975dd2339.tar.gz coreclr-0d21b57657f8135622797f0db29460c975dd2339.tar.bz2 coreclr-0d21b57657f8135622797f0db29460c975dd2339.zip |
Handle a zero byte cpblk (#24871)
Fix #24846
Diffstat (limited to 'src/jit/morph.cpp')
-rw-r--r-- | src/jit/morph.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/jit/morph.cpp b/src/jit/morph.cpp index 7040dd0b25..3bfca379a8 100644 --- a/src/jit/morph.cpp +++ b/src/jit/morph.cpp @@ -9099,7 +9099,10 @@ GenTree* Compiler::fgMorphOneAsgBlockOp(GenTree* tree) size = genTypeSize(asgType); } } - noway_assert((size != 0) || dest->OperIs(GT_DYN_BLK)); + if (size == 0) + { + return nullptr; + } // // See if we can do a simple transformation: |