Initialize long return type descs in `gtNewCallNode`.
authorPat Gavlin <pagavlin@microsoft.com>
Fri, 21 Oct 2016 21:03:58 +0000 (14:03 -0700)
committerPat Gavlin <pagavlin@microsoft.com>
Fri, 21 Oct 2016 21:03:58 +0000 (14:03 -0700)
commitb2d2519cfb68a2e432782735a15bbe89ec003d4c
tree336b9aae5d7e5dcfcb00bb6d6ead6ab851578bc3
parente1a46712014d7d1b9d17e83eaf090c53b5ae2836
Initialize long return type descs in `gtNewCallNode`.

All long-returning calls (including helper calls) must have a properly
initialized ReturnTypeDesc. Previously, this ReturnTypeDesc was only
initialized by the importer for a subset of long-returning calls
(essentially user calls), which caused asserts whenother long-returning
calls were created by the compiler (e.g. for field accessors). This
change moves the necessary ReturnTypeDesc initialization into
`gtNewCallNode`.

Commit migrated from https://github.com/dotnet/coreclr/commit/b2b0b914a68a9a74c8b8685851afb2f874246428
src/coreclr/src/jit/compiler.h
src/coreclr/src/jit/gentree.cpp
src/coreclr/src/jit/importer.cpp