From: Lubomir Litchev Date: Fri, 4 Mar 2016 21:44:40 +0000 (-0800) Subject: Remove a duplicate address tree consumption. X-Git-Tag: submit/tizen/20210909.063632~11030^2~11207^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12c9ad1b9156c767ae70c1b841cce744c28d1d17;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Remove a duplicate address tree consumption. In void CodeGen::genEmitCallvoid CodeGen::genEmitCall override that takes a GenTreeIndir AST we consume the indir addr node. Same thing is done in codegenxarch.cpp just before this method is called. This PR removes the later and thus leaving one consumption of the indirTree->Addr() tree. Commit migrated from https://github.com/dotnet/coreclr/commit/5c6cbc1a3991979d1ace7647f91ddc13c0fede7e --- diff --git a/src/coreclr/src/jit/codegenxarch.cpp b/src/coreclr/src/jit/codegenxarch.cpp index 66ab358..04b932e 100644 --- a/src/coreclr/src/jit/codegenxarch.cpp +++ b/src/coreclr/src/jit/codegenxarch.cpp @@ -5803,8 +5803,6 @@ void CodeGen::genCallInstruction(GenTreePtr node) } else { - GenTree* addr = target->gtGetOp1(); - genConsumeAddress(addr); genEmitCall(emitter::EC_INDIR_ARD, methHnd, INDEBUG_LDISASM_COMMA(sigInfo)