From 072eb590a69bd2ca148bede619a1d805c6b7ba38 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Fri, 11 Jan 2019 20:23:12 +0100 Subject: [PATCH] compiler/interface: correct comment on function --- compiler/interface-lowering.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/interface-lowering.go b/compiler/interface-lowering.go index 8108f435..8ce14d4b 100644 --- a/compiler/interface-lowering.go +++ b/compiler/interface-lowering.go @@ -631,9 +631,9 @@ func (p *lowerInterfacesPass) createInterfaceImplementsFunc(itf *interfaceInfo) p.builder.CreateRet(llvm.ConstInt(p.ctx.Int1Type(), 0, false)) } -// getInterfaceMethodFunc return a function that returns a function pointer for -// calling a method on an interface. It only declares the function, -// createInterfaceMethodFunc actually defines the function. +// getInterfaceMethodFunc returns a thunk for calling a method on an interface. +// It only declares the function, createInterfaceMethodFunc actually defines the +// function. func (p *lowerInterfacesPass) getInterfaceMethodFunc(itf *interfaceInfo, signature *signatureInfo, returnType llvm.Type, params []llvm.Type) llvm.Value { if fn, ok := itf.methodFuncs[signature]; ok { // This function has already been created.