Remove a duplicate address tree consumption.
authorLubomir Litchev <lubol@microsoft.com>
Fri, 4 Mar 2016 21:44:40 +0000 (13:44 -0800)
committerLubomir Litchev <lubol@microsoft.com>
Fri, 4 Mar 2016 21:44:40 +0000 (13:44 -0800)
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

src/coreclr/src/jit/codegenxarch.cpp

index 66ab358..04b932e 100644 (file)
@@ -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)