[NFC][Clang]Remove a reference on argument since 'Name' is not modified'
authorMingming Liu <mingmingl@google.com>
Wed, 26 Apr 2023 17:55:43 +0000 (10:55 -0700)
committerMingming Liu <mingmingl@google.com>
Wed, 26 Apr 2023 18:21:34 +0000 (11:21 -0700)
Reviewed By: nickdesaulniers

Differential Revision: https://reviews.llvm.org/D149274

clang/lib/Basic/Targets/X86.cpp

index a997614..b88b6b5 100644 (file)
@@ -1213,7 +1213,7 @@ bool X86TargetInfo::validateCpuIs(StringRef FeatureStr) const {
       .Default(false);
 }
 
-static unsigned matchAsmCCConstraint(const char *&Name) {
+static unsigned matchAsmCCConstraint(const char *Name) {
   auto RV = llvm::StringSwitch<unsigned>(Name)
                 .Case("@cca", 4)
                 .Case("@ccae", 5)