diff --git a/bindings/go/llvm/IRBindings.cpp b/bindings/go/llvm/IRBindings.cpp index 5ee841c5fa9..1831d33540c 100644 --- a/bindings/go/llvm/IRBindings.cpp +++ b/bindings/go/llvm/IRBindings.cpp @@ -56,9 +56,9 @@ void LLVMGoSetCurrentDebugLocation(LLVMBuilderRef Bref, unsigned Line, if (!Scope) unwrap(Bref)->SetCurrentDebugLocation(DebugLoc()); else - unwrap(Bref)->SetCurrentDebugLocation( - DILocation::get(Scope->getContext(), Line, Col, unwrap(Scope), - InlinedAt ? unwrap(InlinedAt) : nullptr)); + unwrap(Bref)->SetCurrentDebugLocation(DILocation::get( + unwrap(Scope)->getContext(), Line, Col, unwrap(Scope), + InlinedAt ? unwrap(InlinedAt) : nullptr)); } LLVMDebugLocMetadata LLVMGoGetCurrentDebugLocation(LLVMBuilderRef Bref) {