summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Wilkins <axwalk@gmail.com>2017-12-28 04:10:09 +0000
committerAndrew Wilkins <axwalk@gmail.com>2017-12-28 04:10:09 +0000
commit4371e049d4b81177cf3ac0f62726a2d240f60a77 (patch)
tree567537c729352d9de0ed0a2317dc015a5ecb63aa
parent27ee60ca495b3bb3955e2467ce8a38b60613c76b (diff)
downloadbcm5719-llvm-4371e049d4b81177cf3ac0f62726a2d240f60a77.tar.gz
bcm5719-llvm-4371e049d4b81177cf3ac0f62726a2d240f60a77.zip
[bindings/go] fix vet errors
Fix "go vet" errors, which will be run automatically with "go test" as of Go 1.10. Patch by Karsten Weiss! llvm-svn: 321509
-rw-r--r--llvm/bindings/go/llvm/ir_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/bindings/go/llvm/ir_test.go b/llvm/bindings/go/llvm/ir_test.go
index 325ee4890f4..fb39955ec10 100644
--- a/llvm/bindings/go/llvm/ir_test.go
+++ b/llvm/bindings/go/llvm/ir_test.go
@@ -142,7 +142,7 @@ func TestSubtypes(t *testing.T) {
int_pointer := PointerType(cont.Int32Type(), 0)
int_inner := int_pointer.Subtypes()
if len(int_inner) != 1 {
- t.Errorf("Got size %d, though wanted 1")
+ t.Errorf("Got size %d, though wanted 1", len(int_inner))
}
if int_inner[0] != cont.Int32Type() {
t.Errorf("Expected int32 type")
@@ -151,7 +151,7 @@ func TestSubtypes(t *testing.T) {
st_pointer := cont.StructType([]Type{cont.Int32Type(), cont.Int8Type()}, false)
st_inner := st_pointer.Subtypes()
if len(st_inner) != 2 {
- t.Errorf("Got size %d, though wanted 2")
+ t.Errorf("Got size %d, though wanted 2", len(int_inner))
}
if st_inner[0] != cont.Int32Type() {
t.Errorf("Expected first struct field to be int32")
OpenPOWER on IntegriCloud