Skip to content

Commit

Permalink
Fix clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
prithayan committed Oct 9, 2024
1 parent fca36c1 commit 395be6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion include/circt/Dialect/FIRRTL/FIRRTLUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ inline FIRRTLBaseType getBaseType(Type type) {
}

/// Get base type if isa<> the requested type, else null.
template <typename T> inline T getBaseOfType(Type type) {
template <typename T>
inline T getBaseOfType(Type type) {
return dyn_cast_or_null<T>(getBaseType(type));
}

Expand Down
3 changes: 2 additions & 1 deletion lib/Dialect/FIRRTL/FIRRTLOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4619,7 +4619,8 @@ void SubtagOp::print(::mlir::OpAsmPrinter &printer) {
printer << " : " << getInput().getType();
}

template <typename OpTy> static LogicalResult verifySubfieldLike(OpTy op) {
template <typename OpTy>
static LogicalResult verifySubfieldLike(OpTy op) {
if (op.getFieldIndex() >=
firrtl::type_cast<typename OpTy::InputType>(op.getInput().getType())
.getNumElements())
Expand Down

0 comments on commit 395be6e

Please sign in to comment.