all: fix errors reported by go vet
Этот коммит содержится в:
родитель
a2eaaa42a0
коммит
ed227b8fd3
2 изменённых файлов: 3 добавлений и 3 удалений
|
@ -728,11 +728,11 @@ func (c *Compiler) getDIType(typ types.Type) (llvm.Metadata, error) {
|
||||||
encoding = llvm.DW_ATE_address
|
encoding = llvm.DW_ATE_address
|
||||||
}
|
}
|
||||||
// TODO: other types
|
// TODO: other types
|
||||||
return c.dibuilder.CreateBasicType(llvm.DIBasicType{
|
dityp = c.dibuilder.CreateBasicType(llvm.DIBasicType{
|
||||||
Name: name,
|
Name: name,
|
||||||
SizeInBits: sizeInBytes * 8,
|
SizeInBits: sizeInBytes * 8,
|
||||||
Encoding: encoding,
|
Encoding: encoding,
|
||||||
}), nil
|
})
|
||||||
c.ditypes[name] = dityp
|
c.ditypes[name] = dityp
|
||||||
return dityp, nil
|
return dityp, nil
|
||||||
}
|
}
|
||||||
|
|
2
main.go
2
main.go
|
@ -297,7 +297,7 @@ func main() {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
if *target != llvm.DefaultTargetTriple() {
|
if *target != llvm.DefaultTargetTriple() {
|
||||||
fmt.Fprintf(os.Stderr, "Cannot run %s: target triple does not match host triple.")
|
fmt.Fprintf(os.Stderr, "Cannot run %s: target triple does not match host triple.", *target)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
err := Run(flag.Arg(0))
|
err := Run(flag.Arg(0))
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче