Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove invalid assert in literal visitor (#6875)
The code has an assert when processing an OpLoad in the literal visitor to make sure that the result of the load is not a literal type. This is not always true. If there is a compiler-generated, temporary variable that gets its type from a literal, then the result type of the load will have to be decuded by the literal visitor. That is not always possible. However, the code already handle this situation correctly. If the result of the load is a literal type, then the function will return true without doing anything because `canDeduceTypeFromLitType` will return false, as it should. Fixes #6798
- Loading branch information