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

This commit is contained in:
Fangrui Song 2020-12-16 10:09:58 -08:00
parent a79b26db0e
commit 0f10a26dd4
1 changed files with 3 additions and 3 deletions

View 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) {