[clang] 739f557 - [NFC][Clang]Remove a reference on argument since 'Name' is not modified'
Mingming Liu via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 26 11:23:01 PDT 2023
Author: Mingming Liu
Date: 2023-04-26T11:21:34-07:00
New Revision: 739f5578c497a64f2127d2ec7c41f8efa514d0b9
URL: https://github.com/llvm/llvm-project/commit/739f5578c497a64f2127d2ec7c41f8efa514d0b9
DIFF: https://github.com/llvm/llvm-project/commit/739f5578c497a64f2127d2ec7c41f8efa514d0b9.diff
LOG: [NFC][Clang]Remove a reference on argument since 'Name' is not modified'
Reviewed By: nickdesaulniers
Differential Revision: https://reviews.llvm.org/D149274
Added:
Modified:
clang/lib/Basic/Targets/X86.cpp
Removed:
################################################################################
diff --git a/clang/lib/Basic/Targets/X86.cpp b/clang/lib/Basic/Targets/X86.cpp
index a997614a65a86..b88b6b5d1951c 100644
--- a/clang/lib/Basic/Targets/X86.cpp
+++ b/clang/lib/Basic/Targets/X86.cpp
@@ -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)
More information about the cfe-commits
mailing list