Skip to content

Commit cf496c2

Browse files
committed
must not cache temporaries
1 parent 4d6e67f commit cf496c2

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
@@ -349,7 +349,8 @@ llvm::DINode *DebugTranslation::translate(DINodeAttr attr) {
349349
DISubroutineTypeAttr>(
350350
[&](auto attr) { return translateImpl(attr); });
351351

352-
attrToNode.insert({attr, node});
352+
if (!node->isTemporary())
353+
attrToNode.insert({attr, node});
353354
return node;
354355
}
355356

0 commit comments

Comments
 (0)