Skip to content

Commit 7906e71

Browse files
committed
fix null
1 parent 4501269 commit 7906e71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Target/LLVMIR/DebugTranslation.cpp

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

355-
if (!node->isTemporary())
355+
if (node && !node->isTemporary())
356356
attrToNode.insert({attr, node});
357357
return node;
358358
}

0 commit comments

Comments
 (0)