Skip to content

Commit

Permalink
[ESI] Fix use-after-erase bug in connect services lowering
Browse files Browse the repository at this point in the history
For some reason, this only showed up in the Windows CI.
  • Loading branch information
teqdruid committed Jul 5, 2024
1 parent 1f7fc26 commit 792f1fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Dialect/ESI/ESIServices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ LogicalResult ESIConnectServicesPass::replaceInst(ServiceInstanceOp instOp,

// Try to generate the service provider.
if (failed(genDispatcher.generate(implOp, decl)))
return instOp.emitOpError("failed to generate server");
return implOp.emitOpError("failed to generate server");

return success();
}
Expand Down
2 changes: 1 addition & 1 deletion test/Dialect/ESI/errors.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ esi.service.decl @HostComms {

hw.module @Top(in %clk: i1, in %rst: i1) {
// expected-error @+2 {{'esi.service.impl_req' op did not recognize option name "badOpt"}}
// expected-error @+1 {{'esi.service.instance' op failed to generate server}}
// expected-error @+1 {{'esi.service.impl_req' op failed to generate server}}
esi.service.instance #esi.appid<"cosim"> svc @HostComms impl as "cosim" opts {badOpt = "wrong!"} (%clk, %rst) : (i1, i1) -> ()
}

Expand Down

0 comments on commit 792f1fe

Please sign in to comment.