From 0f99952cfa1668a401409886dfd309d7f8cba1d1 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Thu, 12 Jan 2023 14:52:58 -0800 Subject: [PATCH] [LLVM] Remove call to EmitDebugLocation from AddAliasInfo This function only creates alias metadata, so there isn't anything for it to create debug location information for. If `index` is used in executable code, the debug location should be emitted then. --- src/target/llvm/codegen_llvm.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/target/llvm/codegen_llvm.cc b/src/target/llvm/codegen_llvm.cc index 2182ecfa51ce..dcca33732060 100644 --- a/src/target/llvm/codegen_llvm.cc +++ b/src/target/llvm/codegen_llvm.cc @@ -557,7 +557,6 @@ llvm::Type* CodeGenLLVM::GetLLVMType(const PrimExpr& expr) const { // void CodeGenLLVM::AddAliasInfo(llvm::Instruction* inst, const VarNode* buffer_var, PrimExpr index, DataType access_dtype) { - EmitDebugLocation(index->span); if (alias_var_set_.count(buffer_var) != 0) { // Mark all possibly aliased pointer as same type. llvm::MDNode* meta = md_tbaa_alias_set_;