Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release/8.0-staging] [mono][interp] Fix incorrect stack type informa…
…tion (#94966) * [mono][interp] Don't link bblock after rethrow * [mono][interp] Small code refactoring * [mono][interp] Fix incorrect stack type information Assume we have a basic block that it is a forward branch destination, then its stack type information will be initialized at the moment of branching (let's say there is a value of type Obj1). If later in the code we reach this bblock by falling through (let's say the current stack contains a value of Obj2), the current stack state will be copied from the original state, with the type Obj1. If later on we do a virtual call, we will try to devirtualize it as if this is Obj1 which is incorrect, since the fallthrough path would produce an Obj2. This commit adds missing checks for removing type information if we have different types on the execution types on incoming paths. --------- Co-authored-by: Vlad Brezae <brezaevlad@gmail.com>
- Loading branch information