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
}