[clang] [RISCV][NFC] Use enum types to improve debuggability (PR #188418)
Luke Lau via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 25 00:32:44 PDT 2026
================
@@ -1087,17 +1087,17 @@ llvm::SmallVector<PrototypeDescriptor> RVVIntrinsic::computeBuiltinTypes(
if (IsTuple) {
PrototypeDescriptor BasePtrOperand = Prototype[1];
PrototypeDescriptor MaskoffType = PrototypeDescriptor(
- static_cast<uint8_t>(BaseTypeModifier::Vector),
- static_cast<uint8_t>(getTupleVTM(NF)),
- BasePtrOperand.TM & ~static_cast<uint8_t>(TypeModifier::Pointer));
+ BaseTypeModifier::Vector, getTupleVTM(NF),
+ static_cast<TypeModifier>(BasePtrOperand.TM &
----------------
lukel97 wrote:
Is the static_cast avoidable here if both `BasePtrOperand.TM` and `~TypeModifier::Pointer` are TypeModifiers?
https://github.com/llvm/llvm-project/pull/188418
More information about the cfe-commits
mailing list