[llvm] 7982db5 - [Support] Fix warnings in ARMTargetParser.cpp
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 4 15:49:07 PST 2020
Author: Reid Kleckner
Date: 2020-02-04T15:48:22-08:00
New Revision: 7982db5dc6c2d8583b19eaf9514dc7d2c1f92053
URL: https://github.com/llvm/llvm-project/commit/7982db5dc6c2d8583b19eaf9514dc7d2c1f92053
DIFF: https://github.com/llvm/llvm-project/commit/7982db5dc6c2d8583b19eaf9514dc7d2c1f92053.diff
LOG: [Support] Fix warnings in ARMTargetParser.cpp
Added:
Modified:
llvm/lib/Support/ARMTargetParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Support/ARMTargetParser.cpp b/llvm/lib/Support/ARMTargetParser.cpp
index 12284aff1729..360e64a5a5f4 100644
--- a/llvm/lib/Support/ARMTargetParser.cpp
+++ b/llvm/lib/Support/ARMTargetParser.cpp
@@ -27,7 +27,7 @@ static StringRef getHWDivSynonym(StringRef HWDiv) {
ARM::ArchKind ARM::parseArch(StringRef Arch) {
Arch = getCanonicalArchName(Arch);
StringRef Syn = getArchSynonym(Arch);
- for (const auto A : ARCHNames) {
+ for (const auto &A : ARCHNames) {
if (A.getName().endswith(Syn))
return A.ID;
}
More information about the llvm-commits
mailing list