Fix Go IR test for changes in DIBuilder API

llvm-svn: 329021
This commit is contained in:
Harlan Haskins 2018-04-02 21:45:35 +00:00
parent 4964c3831d
commit ee938eb427

View File

@ -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",