================
@@ -3533,10 +3533,10 @@ bool 
X86AsmParser::parseInstruction(ParseInstructionInfo &Info, StringRef Name,
   while (isLockRepeatNtPrefix(Name.lower())) {
     unsigned Prefix =
         StringSwitch<unsigned>(Name)
-            .Cases("lock", "lock", X86::IP_HAS_LOCK)
-            .Cases("rep", "repe", "repz", X86::IP_HAS_REPEAT)
-            .Cases("repne", "repnz", X86::IP_HAS_REPEAT_NE)
-            .Cases("notrack", "notrack", X86::IP_HAS_NOTRACK)
+            .Cases({"lock", "lock"}, X86::IP_HAS_LOCK)
----------------
kazutakahirata wrote:

Not really a problem that your PR should address right now, but I wonder what's 
going on here listing `lock` twice.  The same applies to `notrack` below.

https://github.com/llvm/llvm-project/pull/165112
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to