[Go] Fix bindings/go/llvm/IRBindings.cpp
authorFangrui Song <i@maskray.me>
Wed, 16 Dec 2020 18:09:58 +0000 (10:09 -0800)
committerFangrui Song <i@maskray.me>
Wed, 16 Dec 2020 18:09:58 +0000 (10:09 -0800)
llvm/bindings/go/llvm/IRBindings.cpp

index 5ee841c..1831d33 100644 (file)
@@ -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<MDNode>(Scope),
-                        InlinedAt ? unwrap<MDNode>(InlinedAt) : nullptr));
+    unwrap(Bref)->SetCurrentDebugLocation(DILocation::get(
+        unwrap<MDNode>(Scope)->getContext(), Line, Col, unwrap<MDNode>(Scope),
+        InlinedAt ? unwrap<MDNode>(InlinedAt) : nullptr));
 }
 
 LLVMDebugLocMetadata LLVMGoGetCurrentDebugLocation(LLVMBuilderRef Bref) {