all: fix errors reported by go vet

Этот коммит содержится в:
Ayke van Laethem 2018-09-24 17:19:50 +02:00
родитель a2eaaa42a0
коммит ed227b8fd3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: E97FF5335DFDFDED
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
} }

Просмотреть файл

@ -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))