diff --git a/src/coreclr/jit/gentree.cpp b/src/coreclr/jit/gentree.cpp index 3d3c23f1b10bda..455e30df7198d5 100644 --- a/src/coreclr/jit/gentree.cpp +++ b/src/coreclr/jit/gentree.cpp @@ -18261,6 +18261,10 @@ CORINFO_CLASS_HANDLE Compiler::gtGetClassHandle(GenTree* tree, bool* pIsExact, b *pIsExact = true; objClass = exactClass; } + else + { + *pIsExact = impIsClassExact(objClass); + } } return objClass;