diff --git a/llvm/bindings/go/llvm/DIBuilderBindings.cpp b/llvm/bindings/go/llvm/DIBuilderBindings.cpp index e767144bb322..4e5a0510d921 100644 --- a/llvm/bindings/go/llvm/DIBuilderBindings.cpp +++ b/llvm/bindings/go/llvm/DIBuilderBindings.cpp @@ -79,7 +79,8 @@ LLVMMetadataRef LLVMDIBuilderCreateFunction( return wrap(D->createFunction(unwrap(Scope), Name, LinkageName, File ? unwrap(File) : nullptr, Line, unwrap(CompositeType), - IsLocalToUnit, IsDefinition, ScopeLine, Flags, + IsLocalToUnit, IsDefinition, ScopeLine, + static_cast(Flags), IsOptimized)); } @@ -91,7 +92,8 @@ LLVMDIBuilderCreateAutoVariable(LLVMDIBuilderRef Dref, LLVMMetadataRef Scope, DIBuilder *D = unwrap(Dref); return wrap(D->createAutoVariable(unwrap(Scope), Name, unwrap(File), Line, - unwrap(Ty), AlwaysPreserve, Flags)); + unwrap(Ty), AlwaysPreserve, + static_cast(Flags))); } LLVMMetadataRef LLVMDIBuilderCreateParameterVariable( @@ -101,7 +103,7 @@ LLVMMetadataRef LLVMDIBuilderCreateParameterVariable( DIBuilder *D = unwrap(Dref); return wrap(D->createParameterVariable( unwrap(Scope), Name, ArgNo, unwrap(File), Line, - unwrap(Ty), AlwaysPreserve, Flags)); + unwrap(Ty), AlwaysPreserve, static_cast(Flags))); } LLVMMetadataRef LLVMDIBuilderCreateBasicType(LLVMDIBuilderRef Dref, @@ -139,7 +141,7 @@ LLVMMetadataRef LLVMDIBuilderCreateStructType( DIBuilder *D = unwrap(Dref); return wrap(D->createStructType( unwrap(Scope), Name, File ? unwrap(File) : nullptr, Line, - SizeInBits, AlignInBits, Flags, + SizeInBits, AlignInBits, static_cast(Flags), DerivedFrom ? unwrap(DerivedFrom) : nullptr, ElementTypes ? DINodeArray(unwrap(ElementTypes)) : nullptr)); } @@ -152,7 +154,8 @@ LLVMMetadataRef LLVMDIBuilderCreateReplaceableCompositeType( DIBuilder *D = unwrap(Dref); return wrap(D->createReplaceableCompositeType( Tag, Name, unwrap(Scope), File ? unwrap(File) : nullptr, - Line, RuntimeLang, SizeInBits, AlignInBits, Flags)); + Line, RuntimeLang, SizeInBits, AlignInBits, + static_cast(Flags))); } LLVMMetadataRef @@ -164,7 +167,8 @@ LLVMDIBuilderCreateMemberType(LLVMDIBuilderRef Dref, LLVMMetadataRef Scope, DIBuilder *D = unwrap(Dref); return wrap(D->createMemberType( unwrap(Scope), Name, File ? unwrap(File) : nullptr, Line, - SizeInBits, AlignInBits, OffsetInBits, Flags, unwrap(Ty))); + SizeInBits, AlignInBits, OffsetInBits, + static_cast(Flags), unwrap(Ty))); } LLVMMetadataRef LLVMDIBuilderCreateArrayType(LLVMDIBuilderRef Dref,