compiler: add comment to interface call signatures

This commit is contained in:
Ayke van Laethem
2018-11-03 12:04:33 +01:00
parent 2e22d53e5d
commit 8da1a5bc17
+2
View File
@@ -694,6 +694,8 @@ func (c *Compiler) getLLVMType(goType types.Type) (llvm.Type, error) {
return llvm.Type{}, err
}
if recv.StructName() == "runtime._interface" {
// This is a call on an interface, not a concrete type.
// The receiver is not an interface, but a i8* type.
recv = c.i8ptrType
}
paramTypes = append(paramTypes, c.expandFormalParamType(recv)...)