[llvm-branch-commits] [llvm] 0f10a26 - [Go] Fix bindings/go/llvm/IRBindings.cpp

Fangrui Song via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Dec 16 10:15:12 PST 2020


Author: Fangrui Song
Date: 2020-12-16T10:09:58-08:00
New Revision: 0f10a26dd4c7542a6e46e1d44fd8d816cb634e26

URL: https://github.com/llvm/llvm-project/commit/0f10a26dd4c7542a6e46e1d44fd8d816cb634e26
DIFF: https://github.com/llvm/llvm-project/commit/0f10a26dd4c7542a6e46e1d44fd8d816cb634e26.diff

LOG: [Go] Fix bindings/go/llvm/IRBindings.cpp

Added: 
    

Modified: 
    llvm/bindings/go/llvm/IRBindings.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/bindings/go/llvm/IRBindings.cpp b/llvm/bindings/go/llvm/IRBindings.cpp
index 5ee841c5fa9b..1831d33540ca 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<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) {


        


More information about the llvm-branch-commits mailing list