all: fix errors reported by go vet

This commit is contained in:
Ayke van Laethem
2018-09-24 17:19:50 +02:00
parent a2eaaa42a0
commit ed227b8fd3
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -728,11 +728,11 @@ func (c *Compiler) getDIType(typ types.Type) (llvm.Metadata, error) {
encoding = llvm.DW_ATE_address
}
// TODO: other types
return c.dibuilder.CreateBasicType(llvm.DIBasicType{
dityp = c.dibuilder.CreateBasicType(llvm.DIBasicType{
Name: name,
SizeInBits: sizeInBytes * 8,
Encoding: encoding,
}), nil
})
c.ditypes[name] = dityp
return dityp, nil
}
+1 -1
View File
@@ -297,7 +297,7 @@ func main() {
os.Exit(1)
}
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)
}
err := Run(flag.Arg(0))