Skip to content

Commit

Permalink
[FIRRTL] Use more specific type
Browse files Browse the repository at this point in the history
Fixes operator overload resolution error on `gcc-11`.
  • Loading branch information
hovind committed Nov 23, 2024
1 parent b7d819c commit 94f44fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dialect/FIRRTL/FIRRTLOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,7 @@ LogicalResult FModuleOp::verify() {
for (auto [arg, type, loc] : zip(body->getArguments(), portTypes, portLocs)) {
if (arg.getType() != cast<TypeAttr>(type).getValue())
return emitOpError("block argument types should match signature types");
if (arg.getLoc() != cast<LocationAttr>(loc))
if (arg.getLoc() != cast<Location>(loc))
return emitOpError(
"block argument locations should match signature locations");
}
Expand Down

0 comments on commit 94f44fc

Please sign in to comment.