chore: remove trailing whitespaces in EmitLLVM
For some reason, these two were missed in the last commit.
This commit is contained in:
parent
d90176af71
commit
736a21cd5a
1 changed files with 2 additions and 2 deletions
|
|
@ -111,11 +111,11 @@ instance : ToString RefcountKind where
|
|||
def callLeanRefcountFn (builder : LLVM.Builder llvmctx)
|
||||
(kind : RefcountKind) (checkRef? : Bool) (arg : LLVM.Value llvmctx)
|
||||
(delta : Option (LLVM.Value llvmctx) := Option.none) : M llvmctx Unit := do
|
||||
let fnName := s!"lean_{kind}{if checkRef? then "" else "_ref"}{if delta.isNone then "" else "_n"}"
|
||||
let fnName := s!"lean_{kind}{if checkRef? then "" else "_ref"}{if delta.isNone then "" else "_n"}"
|
||||
let retty ← LLVM.voidType llvmctx
|
||||
let argtys := if delta.isNone then #[← LLVM.voidPtrType llvmctx] else #[← LLVM.voidPtrType llvmctx, ← LLVM.size_tType llvmctx]
|
||||
let fn ← getOrCreateFunctionPrototype (← getLLVMModule) retty fnName argtys
|
||||
let fnty ← LLVM.functionType retty argtys
|
||||
let fnty ← LLVM.functionType retty argtys
|
||||
match delta with
|
||||
| .none => do
|
||||
-- since refcount δ is 1, we only supply the pointer.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue