chore: remove special case for extern constructors (#10257)

This is subsumed by the fix in #10256.
This commit is contained in:
Cameron Zwarich 2025-09-04 23:08:45 -07:00 committed by GitHub
parent de38a16fa9
commit 9923a8d9f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -160,9 +160,6 @@ partial def lowerLet (decl : LCNF.LetDecl) (k : LCNF.Code) : M FnBody := do
let env ← Lean.getEnv
match env.find? name with
| some (.ctorInfo ctorVal) =>
if isExtern env name then
return (← mkFap name irArgs)
let type ← nameToIRType ctorVal.induct
if type.isScalar then
let var ← bindVar decl.fvarId