From 0f10a26dd4c7542a6e46e1d44fd8d816cb634e26 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 16 Dec 2020 10:09:58 -0800 Subject: [PATCH] [Go] Fix bindings/go/llvm/IRBindings.cpp --- llvm/bindings/go/llvm/IRBindings.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/bindings/go/llvm/IRBindings.cpp b/llvm/bindings/go/llvm/IRBindings.cpp index 5ee841c..1831d33 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) { -- 2.7.4