chore: mitigate noncomputable section issues in the code generator (#12453)

This is a mitigation for the fact that the upfront noncomputable checker
currently doesn't error out early enough in certain situations so we
violate invariants later on.
This commit is contained in:
Henrik Böving 2026-02-12 13:34:49 +01:00 committed by GitHub
parent 3b2944205b
commit db12e64845
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -213,7 +213,7 @@ where
| some ps => return ps
| none =>
let .decl fn := k | unreachable!
let some sig ← getImpureSignature? fn | unreachable!
let some sig ← getImpureSignature? fn | throwError "Failed to find LCNF signature for {fn}"
return sig.params
/-- For each ps[i], if ps[i] is owned, then mark args[i] as owned. -/