We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FunType
setupCalleeClosure
1 parent 431a484 commit 45a565dCopy full SHA for 45a565d
1 file changed
kmir/src/kmir/kdist/mir-semantics/kmir.md
@@ -548,8 +548,10 @@ Therefore a heuristics is used here:
548
andBool isTypedValue(LOCALS[TUPLE])
549
andBool isTupleType(lookupTy(tyOfLocal({LOCALS[TUPLE]}:>TypedLocal)))
550
andBool isTypedLocal(LOCALS[CLOSURE])
551
- andBool typeInfoVoidType ==K lookupTy(tyOfLocal({LOCALS[CLOSURE]}:>TypedLocal))
552
- // either the closure ref type is missing from type table
+ andBool (
+ typeInfoVoidType ==K lookupTy(tyOfLocal({LOCALS[CLOSURE]}:>TypedLocal))
553
+ orBool isFunType(lookupTy(tyOfLocal({LOCALS[CLOSURE]}:>TypedLocal)))
554
+ )
555
[priority(40), preserves-definedness]
556
557
rule [setupCalleeClosure2]: <k> #setUpCalleeData(
0 commit comments