mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
all: fix errors reported by go vet
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user