From 4eabb646b49aba9d067d120cd0bc742dc49b4efb Mon Sep 17 00:00:00 2001 From: petris Date: Thu, 13 Jul 2023 00:34:07 +0200 Subject: [PATCH] Mark final types as exact --- src/coreclr/jit/gentree.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/coreclr/jit/gentree.cpp b/src/coreclr/jit/gentree.cpp index 66943d25d631be..668b9139929f67 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;