Skip to content

Commit 2fa593e

Browse files
committed
Use existing loc
1 parent 9584b33 commit 2fa593e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mlir/lib/Target/LLVMIR/ModuleImport.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1910,8 +1910,7 @@ LogicalResult ModuleImport::convertInstruction(llvm::Instruction *inst) {
19101910
// insert into `operands` to include the indirect call target.
19111911
FlatSymbolRefAttr calleeSym = convertCalleeName(callInst);
19121912
Value indirectCallVal = builder.create<LLVM::AddressOfOp>(
1913-
translateLoc(callInst->getDebugLoc()),
1914-
LLVM::LLVMPointerType::get(context), calleeSym);
1913+
loc, LLVM::LLVMPointerType::get(context), calleeSym);
19151914
operands->insert(operands->begin(), indirectCallVal);
19161915
} else {
19171916
// Regular direct call using callee name.
@@ -2003,8 +2002,7 @@ LogicalResult ModuleImport::convertInstruction(llvm::Instruction *inst) {
20032002
// insert into `operands` to include the indirect invoke target.
20042003
FlatSymbolRefAttr calleeSym = convertCalleeName(invokeInst);
20052004
Value indirectInvokeVal = builder.create<LLVM::AddressOfOp>(
2006-
translateLoc(invokeInst->getDebugLoc()),
2007-
LLVM::LLVMPointerType::get(context), calleeSym);
2005+
loc, LLVM::LLVMPointerType::get(context), calleeSym);
20082006
operands->insert(operands->begin(), indirectInvokeVal);
20092007
} else {
20102008
// Regular direct invoke using callee name.

0 commit comments

Comments
 (0)