chore: remove redundant headBeta call (#8824)
This commit is contained in:
parent
46c3eaece9
commit
9e913a29de
1 changed files with 2 additions and 1 deletions
|
|
@ -110,7 +110,8 @@ def lowerType (e : Lean.Expr) : M IRType := do
|
|||
else
|
||||
return .object
|
||||
| .app f _ =>
|
||||
if let .const name _ := f.headBeta then
|
||||
-- All mono types are in headBeta form.
|
||||
if let .const name _ := f then
|
||||
if let some scalarType ← lowerEnumToScalarType name then
|
||||
return scalarType
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue