summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-10-15 06:56:10 +0000
committerEric Christopher <echristo@gmail.com>2015-10-15 06:56:10 +0000
commit6f565c0e974e7b420697eba15c16095813ae3d67 (patch)
treea156062a1492b01f7ebe36aac7f4c7477e40c739 /bindings
parent9816f9eac902b84ec044bc11f6243d9e9400f3ef (diff)
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
Diffstat (limited to 'bindings')
-rw-r--r--bindings/go/llvm/DIBuilderBindings.cpp3
1 files changed, 1 insertions, 2 deletions
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<DIFile>(File) : nullptr,
- DITypeRefArray(unwrap<MDTuple>(ParameterTypes))));
+ D->createSubroutineType(DITypeRefArray(unwrap<MDTuple>(ParameterTypes))));
}
LLVMMetadataRef LLVMDIBuilderCreateStructType(