diff --git a/llvm/bindings/go/llvm/IRBindings.cpp b/llvm/bindings/go/llvm/IRBindings.cpp index 5ee841c5fa9b2..1831d33540ca2 100644 --- a/llvm/bindings/go/llvm/IRBindings.cpp +++ b/llvm/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) {