compiler: add comment to interface call signatures
Этот коммит содержится в:
родитель
2e22d53e5d
коммит
8da1a5bc17
1 изменённых файлов: 2 добавлений и 0 удалений
|
@ -694,6 +694,8 @@ func (c *Compiler) getLLVMType(goType types.Type) (llvm.Type, error) {
|
||||||
return llvm.Type{}, err
|
return llvm.Type{}, err
|
||||||
}
|
}
|
||||||
if recv.StructName() == "runtime._interface" {
|
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
|
recv = c.i8ptrType
|
||||||
}
|
}
|
||||||
paramTypes = append(paramTypes, c.expandFormalParamType(recv)...)
|
paramTypes = append(paramTypes, c.expandFormalParamType(recv)...)
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче