[HW][LegalizeModules] Avoid segmentation fault (#7013)

This commit is contained in:
hovind 2024-05-09 12:47:02 +02:00 committed by GitHub
parent 7073e2cfdc
commit d913a5adb0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ Value HWLegalizeModulesPass::lowerLookupToCasez(Operation &op, Value input,
builder.getStringAttr("casez_tmp"));
builder.setInsertionPoint(&op);
auto loc = input.getDefiningOp()->getLoc();
auto loc = input.getLoc();
// A casez is a procedural operation, so if we're in a
// non-procedural region we need to inject an always_comb
// block.