Skip to content

Commit 4932e5f

Browse files
committed
Fix fmtlib build error
Added a log for BinaryOpKind but there's no format implementation for it yet.
1 parent 0a8d4ae commit 4932e5f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cinderx/Jit/hir/hir.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,10 @@ enum class BinaryOpKind {
547547
#undef DEFINE_OP
548548
};
549549

550+
inline auto format_as(BinaryOpKind kind) {
551+
return fmt::underlying(kind);
552+
}
553+
550554
#define COUNT_OP(NAME) +1
551555
constexpr size_t kNumBinaryOpKinds = FOREACH_BINARY_OP_KIND(COUNT_OP);
552556
#undef COUNT_OP

0 commit comments

Comments
 (0)