From: Mikhail Skvortcov Date: Thu, 27 Apr 2017 14:53:53 +0000 (+0300) Subject: Do not report out-of-order consuming if node wasn't consumed at all X-Git-Tag: submit/tizen/20210909.063632~11030^2~7091^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cbecec834bb20d513660620f7a0e85a1ab6a6b7c;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Do not report out-of-order consuming if node wasn't consumed at all Commit migrated from https://github.com/dotnet/coreclr/commit/c3bb00cd7baebf787c1722c5fc99ca1aea28c4ea --- diff --git a/src/coreclr/src/jit/codegenlinear.cpp b/src/coreclr/src/jit/codegenlinear.cpp index c8fcd88..b0fb36f 100644 --- a/src/coreclr/src/jit/codegenlinear.cpp +++ b/src/coreclr/src/jit/codegenlinear.cpp @@ -1087,7 +1087,11 @@ void CodeGen::genCheckConsumeNode(GenTree* const node) if (verbose) { - if ((node->gtDebugFlags & GTF_DEBUG_NODE_CG_CONSUMED) != 0) + if (node->gtUseNum == -1) + { + // nothing wrong if the node was not consumed + } + else if ((node->gtDebugFlags & GTF_DEBUG_NODE_CG_CONSUMED) != 0) { printf("Node was consumed twice:\n"); compiler->gtDispTree(node, nullptr, nullptr, true);