mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 04:53:42 +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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user