From 395be6e38bb6518cc47e0bf700680bb0fcbd0057 Mon Sep 17 00:00:00 2001 From: Prithayan Barua Date: Wed, 9 Oct 2024 07:55:10 -0700 Subject: [PATCH] Fix clang-format --- include/circt/Dialect/FIRRTL/FIRRTLUtils.h | 3 ++- lib/Dialect/FIRRTL/FIRRTLOps.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/circt/Dialect/FIRRTL/FIRRTLUtils.h b/include/circt/Dialect/FIRRTL/FIRRTLUtils.h index 3c4da7c98aad..d525850dd6bd 100644 --- a/include/circt/Dialect/FIRRTL/FIRRTLUtils.h +++ b/include/circt/Dialect/FIRRTL/FIRRTLUtils.h @@ -228,7 +228,8 @@ inline FIRRTLBaseType getBaseType(Type type) { } /// Get base type if isa<> the requested type, else null. -template inline T getBaseOfType(Type type) { +template +inline T getBaseOfType(Type type) { return dyn_cast_or_null(getBaseType(type)); } diff --git a/lib/Dialect/FIRRTL/FIRRTLOps.cpp b/lib/Dialect/FIRRTL/FIRRTLOps.cpp index ceeda2027c00..09b6cc0a9bc6 100644 --- a/lib/Dialect/FIRRTL/FIRRTLOps.cpp +++ b/lib/Dialect/FIRRTL/FIRRTLOps.cpp @@ -4619,7 +4619,8 @@ void SubtagOp::print(::mlir::OpAsmPrinter &printer) { printer << " : " << getInput().getType(); } -template static LogicalResult verifySubfieldLike(OpTy op) { +template +static LogicalResult verifySubfieldLike(OpTy op) { if (op.getFieldIndex() >= firrtl::type_cast(op.getInput().getType()) .getNumElements())