Skip to content

Commit 4501269

Browse files
committed
must not cache temporaries
1 parent a5f5417 commit 4501269

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mlir/lib/Target/LLVMIR/DebugTranslation.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,8 @@ llvm::DINode *DebugTranslation::translate(DINodeAttr attr) {
352352
DISubroutineTypeAttr>(
353353
[&](auto attr) { return translateImpl(attr); });
354354

355-
attrToNode.insert({attr, node});
355+
if (!node->isTemporary())
356+
attrToNode.insert({attr, node});
356357
return node;
357358
}
358359

0 commit comments

Comments
 (0)