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/gentree.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/gentree.cpp')
-rw-r--r-- | src/jit/gentree.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/jit/gentree.cpp b/src/jit/gentree.cpp index 420e87c7e5..413db06c05 100644 --- a/src/jit/gentree.cpp +++ b/src/jit/gentree.cpp @@ -15456,9 +15456,8 @@ bool GenTree::DefinesLocal(Compiler* comp, GenTreeLclVarCommon** pLclVarTree, bo GenTree* destAddr = blkNode->Addr(); unsigned width = blkNode->gtBlkSize; // Do we care about whether this assigns the entire variable? - if (pIsEntire != nullptr && width == 0) + if (pIsEntire != nullptr && blkNode->OperIs(GT_DYN_BLK)) { - assert(blkNode->gtOper == GT_DYN_BLK); GenTree* blockWidth = blkNode->AsDynBlk()->gtDynamicSize; if (blockWidth->IsCnsIntOrI()) { |