[llvm] [ARM] Change the type of CC and VCC code in `splitMnemonic`. (PR #83413)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 29 07:46:14 PST 2024


================
@@ -6340,7 +6340,7 @@ StringRef ARMAsmParser::splitMnemonic(StringRef Mnemonic,
     unsigned CC = ARMCondCodeFromString(Mnemonic.substr(Mnemonic.size()-2));
     if (CC != ~0U) {
       Mnemonic = Mnemonic.slice(0, Mnemonic.size() - 2);
-      PredicationCode = CC;
+      PredicationCode = (ARMCC::CondCodes)CC;
----------------
s-barannikov wrote:

https://llvm.org/docs/CodingStandards.html#prefer-c-style-casts

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


More information about the llvm-commits mailing list