Fix gtCloneExpr when cloning during R2R compilation a GT_ALLOCOBJ node (#59395)
authorDavid Wrighton <davidwr@microsoft.com>
Tue, 21 Sep 2021 17:55:38 +0000 (10:55 -0700)
committerGitHub <noreply@github.com>
Tue, 21 Sep 2021 17:55:38 +0000 (10:55 -0700)
commit03bc2c28cc250b1a10a5394277e3cbe5b2820bce
tree32dd17ba9344fb93e853278967be11f0794697cf
parent41e86773243ae6471ff26eb74e327c04e14e8a67
Fix gtCloneExpr when cloning during R2R compilation a GT_ALLOCOBJ node (#59395)

* Fix gtCloneExpr when cloning during R2R compilation a GT_ALLOCOBJ node
- Without this fix cloned expressions with allocations will fail
- This is most common in profile guided code around devirtualization, but I believe it can occur in other where gtCloneExpr is used
- Symptom of the failure is a compilation failure during crossgen2
src/coreclr/jit/gentree.cpp
src/coreclr/jit/objectalloc.cpp