From d0ecd5835d9e11b743d64acd191f15cb3ddcba21 Mon Sep 17 00:00:00 2001 From: Sinan Kaya <41809318+franksinankaya@users.noreply.github.com> Date: Sun, 20 Oct 2019 22:44:56 -0400 Subject: [PATCH] Replace gtPhysReg. with AsPhysReg()-> Commit migrated from https://github.com/dotnet/coreclr/commit/857a3a6c1d629e5b75640369dd22a776f4f05092 --- src/coreclr/src/jit/compiler.cpp | 2 +- src/coreclr/src/jit/gentree.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coreclr/src/jit/compiler.cpp b/src/coreclr/src/jit/compiler.cpp index dd8674d..71caa7d9 100644 --- a/src/coreclr/src/jit/compiler.cpp +++ b/src/coreclr/src/jit/compiler.cpp @@ -10032,7 +10032,7 @@ int cLeafIR(Compiler* comp, GenTree* tree) case GT_PHYSREG: - chars += printf("%s", getRegName(tree->gtPhysReg.gtSrcReg, varTypeIsFloating(tree))); + chars += printf("%s", getRegName(tree->AsPhysReg()->gtSrcReg, varTypeIsFloating(tree))); break; case GT_LABEL: diff --git a/src/coreclr/src/jit/gentree.cpp b/src/coreclr/src/jit/gentree.cpp index 8831a6b..9ed82f1 100644 --- a/src/coreclr/src/jit/gentree.cpp +++ b/src/coreclr/src/jit/gentree.cpp @@ -10703,7 +10703,7 @@ void Compiler::gtDispLeaf(GenTree* tree, IndentStack* indentStack) break; case GT_PHYSREG: - printf(" %s", getRegName(tree->gtPhysReg.gtSrcReg, varTypeIsFloating(tree))); + printf(" %s", getRegName(tree->AsPhysReg()->gtSrcReg, varTypeIsFloating(tree))); break; case GT_IL_OFFSET: -- 2.7.4