From 36f4353bd9a94f65cb5b38ce87b1e1f4c5a78514 Mon Sep 17 00:00:00 2001 From: SingleAccretion Date: Fri, 21 Jan 2022 12:54:21 +0300 Subject: [PATCH] Bring back the odd early return --- src/coreclr/jit/gentree.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/coreclr/jit/gentree.cpp b/src/coreclr/jit/gentree.cpp index f1b10f8b1c3b9..39bb312eb907b 100644 --- a/src/coreclr/jit/gentree.cpp +++ b/src/coreclr/jit/gentree.cpp @@ -15219,6 +15219,11 @@ bool GenTree::DefinesLocal(Compiler* comp, GenTreeLclVarCommon** pLclVarTree, bo { assert(blockWidth->AsIntConCommon()->FitsInI32()); width = static_cast(blockWidth->AsIntConCommon()->IconValue()); + + if (width == 0) + { + return false; + } } }