Skip to content

Commit

Permalink
Use dyn_cast free-function instead of member-function
Browse files Browse the repository at this point in the history
  • Loading branch information
rwy7 committed May 22, 2024
1 parent 9a8c66a commit e3fd7ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dialect/FIRRTL/Transforms/LowerAnnotations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ static LogicalResult applyOutputDirAnno(const AnnoPathValue &target,
return mlir::emitError(loc) << outputDirAnnoClass << " ";
};

auto opTarget = target.ref.dyn_cast<OpAnnoTarget>();
auto opTarget = dyn_cast<OpAnnoTarget>(target.ref);
if (!opTarget)
return error() << "must target a module";
if (!target.isLocal())
Expand Down

0 comments on commit e3fd7ca

Please sign in to comment.