Skip to content

Commit 0819494

Browse files
abidhgithub-actions[bot]
authored andcommitted
Automerge: Revert "[mlir][OpenMP] Use correct debug location with link clause." (#145768)
Reverts llvm/llvm-project#145026 Caused a CI failure on https://lab.llvm.org/buildbot/#/builders/169/builds/12504.
2 parents 65dd69a + a75279e commit 0819494

File tree

2 files changed

+0
-42
lines changed

2 files changed

+0
-42
lines changed

mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4831,7 +4831,6 @@ handleDeclareTargetMapVar(MapInfoData &mapData,
48314831
llvm::IRBuilderBase &builder, llvm::Function *func) {
48324832
assert(moduleTranslation.getOpenMPBuilder()->Config.isTargetDevice() &&
48334833
"function only supported for target device codegen");
4834-
llvm::IRBuilderBase::InsertPointGuard guard(builder);
48354834
for (size_t i = 0; i < mapData.MapClause.size(); ++i) {
48364835
// In the case of declare target mapped variables, the basePointer is
48374836
// the reference pointer generated by the convertDeclareTargetAttr
@@ -4866,7 +4865,6 @@ handleDeclareTargetMapVar(MapInfoData &mapData,
48664865
for (llvm::User *user : userVec) {
48674866
if (auto *insn = dyn_cast<llvm::Instruction>(user)) {
48684867
if (insn->getFunction() == func) {
4869-
builder.SetCurrentDebugLocation(insn->getDebugLoc());
48704868
auto *load = builder.CreateLoad(mapData.BasePointers[i]->getType(),
48714869
mapData.BasePointers[i]);
48724870
load->moveBefore(insn->getIterator());

mlir/test/Target/LLVMIR/omptarget-debug-map-link-loc.mlir

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)