[Refactoring] Add Type::equivalent(Type *t)
fix Issue 13437 - [e2ir] ICE in e2ir.c 4616
Merge pull request #3984 from 9rnsr/fix13437

Issue 13437 - [e2ir] ICE in e2ir.c 4616