Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions runtime/core/exec_aten/util/scalar_type_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -897,14 +897,14 @@ struct promote_types {
#define ET_INTERNAL_SWITCH_CASE(enum_type, CTYPE_ALIAS, ...) \
case enum_type: { \
ET_INTERNAL_CHECK_SELECTIVE_BUILD(enum_type); \
using CTYPE_ALIAS = \
using CTYPE_ALIAS [[maybe_unused]] = \
::executorch::runtime::ScalarTypeToCppType<enum_type>::type; \
return __VA_ARGS__(); \
}
#else
#define ET_INTERNAL_SWITCH_CASE(enum_type, CTYPE_ALIAS, ...) \
case enum_type: { \
using CTYPE_ALIAS = \
using CTYPE_ALIAS [[maybe_unused]] = \
::executorch::runtime::ScalarTypeToCppType<enum_type>::type; \
return __VA_ARGS__(); \
}
Expand Down
Loading