[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:43 PDT 2026


================
@@ -1126,9 +1126,9 @@ llvm::SmallVector<PrototypeDescriptor> RVVIntrinsic::computeBuiltinTypes(
       if (IsTuple) {
         PrototypeDescriptor BasePtrOperand = Prototype[0];
         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:

Same question here

https://github.com/llvm/llvm-project/pull/188418


More information about the cfe-commits mailing list