From ee938eb427de23531bc7f66223457436fcb6fd73 Mon Sep 17 00:00:00 2001 From: Harlan Haskins Date: Mon, 2 Apr 2018 21:45:35 +0000 Subject: [PATCH] Fix Go IR test for changes in DIBuilder API llvm-svn: 329021 --- bindings/go/llvm/ir_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bindings/go/llvm/ir_test.go b/bindings/go/llvm/ir_test.go index 5cd782b7d96..10f4968ba89 100644 --- a/bindings/go/llvm/ir_test.go +++ b/bindings/go/llvm/ir_test.go @@ -112,7 +112,11 @@ func TestDebugLoc(t *testing.T) { }() file := d.CreateFile("dummy_file", "dummy_dir") voidInfo := d.CreateBasicType(DIBasicType{Name: "void"}) - typeInfo := d.CreateSubroutineType(DISubroutineType{file, []Metadata{voidInfo}}) + typeInfo := d.CreateSubroutineType(DISubroutineType{ + File: file, + Parameters: []Metadata{voidInfo}, + Flags: 0, + }) scope := d.CreateFunction(file, DIFunction{ Name: "foo", LinkageName: "foo",