Skip to content

Commit bf53885

Browse files
committed
Added check for FunType in setupCalleeClosure
Same as what was in `setupCalleeClosure2`
1 parent df4b8d0 commit bf53885

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • kmir/src/kmir/kdist/mir-semantics

kmir/src/kmir/kdist/mir-semantics/kmir.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,10 @@ Therefore a heuristics is used here:
548548
andBool isTypedValue(LOCALS[TUPLE])
549549
andBool isTupleType(lookupTy(tyOfLocal({LOCALS[TUPLE]}:>TypedLocal)))
550550
andBool isTypedLocal(LOCALS[CLOSURE])
551-
andBool typeInfoVoidType ==K lookupTy(tyOfLocal({LOCALS[CLOSURE]}:>TypedLocal))
552-
// either the closure ref type is missing from type table
551+
andBool (
552+
typeInfoVoidType ==K lookupTy(tyOfLocal({LOCALS[CLOSURE]}:>TypedLocal))
553+
orBool isFunType(lookupTy(tyOfLocal({LOCALS[CLOSURE]}:>TypedLocal)))
554+
)
553555
[priority(40), preserves-definedness]
554556
555557
rule [setupCalleeClosure2]: <k> #setUpCalleeData(

0 commit comments

Comments
 (0)