diff options
Diffstat (limited to 'src/jit/gentree.cpp')
-rw-r--r-- | src/jit/gentree.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/jit/gentree.cpp b/src/jit/gentree.cpp index 92b39a9e55..304f34b888 100644 --- a/src/jit/gentree.cpp +++ b/src/jit/gentree.cpp @@ -5563,9 +5563,12 @@ GenTreeCall* Compiler::gtNewCallNode(gtCallTypes callType, node->gtInlineCandidateInfo = NULL; } node->gtCallLateArgs = nullptr; - node->gtCallRegUsedMask = RBM_NONE; node->gtReturnType = type; +#ifdef LEGACY_BACKEND + node->gtCallRegUsedMask = RBM_NONE; +#endif // LEGACY_BACKEND + #ifdef FEATURE_READYTORUN_COMPILER node->gtCall.gtEntryPoint.addr = nullptr; #endif @@ -6715,7 +6718,6 @@ GenTreePtr Compiler::gtCloneExpr(GenTree * tree, // because the inlinee still uses the inliner's memory allocator anyway.) copy->gtCall.callSig = tree->gtCall.callSig; - copy->gtCall.gtCallRegUsedMask = tree->gtCall.gtCallRegUsedMask; copy->gtCall.gtCallType = tree->gtCall.gtCallType; copy->gtCall.gtReturnType = tree->gtCall.gtReturnType; copy->gtCall.gtControlExpr = tree->gtCall.gtControlExpr; @@ -6752,6 +6754,10 @@ GenTreePtr Compiler::gtCloneExpr(GenTree * tree, copy->gtCall.gtReturnTypeDesc = tree->gtCall.gtReturnTypeDesc; #endif +#ifdef LEGACY_BACKEND + copy->gtCall.gtCallRegUsedMask = tree->gtCall.gtCallRegUsedMask; +#endif // LEGACY_BACKEND + #ifdef FEATURE_READYTORUN_COMPILER copy->gtCall.setEntryPoint(tree->gtCall.gtEntryPoint); #endif |