From 6f565c0e974e7b420697eba15c16095813ae3d67 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 15 Oct 2015 06:56:10 +0000 Subject: Remove DIFile from createSubroutineType. Patch by Amaury Sechet with a small modification by me. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250374 91177308-0d34-0410-b5e6-96231b3b80d8 --- bindings/go/llvm/DIBuilderBindings.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bindings') diff --git a/bindings/go/llvm/DIBuilderBindings.cpp b/bindings/go/llvm/DIBuilderBindings.cpp index d9d0f7ac964..e7fe8f5dde8 100644 --- a/bindings/go/llvm/DIBuilderBindings.cpp +++ b/bindings/go/llvm/DIBuilderBindings.cpp @@ -128,8 +128,7 @@ LLVMDIBuilderCreateSubroutineType(LLVMDIBuilderRef Dref, LLVMMetadataRef File, LLVMMetadataRef ParameterTypes) { DIBuilder *D = unwrap(Dref); return wrap( - D->createSubroutineType(File ? unwrap(File) : nullptr, - DITypeRefArray(unwrap(ParameterTypes)))); + D->createSubroutineType(DITypeRefArray(unwrap(ParameterTypes)))); } LLVMMetadataRef LLVMDIBuilderCreateStructType( -- cgit v1.2.3