summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2015-04-15 01:21:15 +0000
committerRichard Trieu <rtrieu@google.com>2015-04-15 01:21:15 +0000
commit6b1aa5f5e17d019115365cc7722c380b5bb02dc7 (patch)
tree3f1f72a9f7185783ec4daf2862a67e23790431d8 /llvm/utils
parentbb61825cd5d87872cb0bf8beb3af15c590e86974 (diff)
downloadbcm5719-llvm-6b1aa5f5e17d019115365cc7722c380b5bb02dc7.tar.gz
bcm5719-llvm-6b1aa5f5e17d019115365cc7722c380b5bb02dc7.zip
Change range-based for-loops to be -Wrange-loop-analysis clean.
No functionality change. llvm-svn: 234963
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/TableGen/CodeGenRegisters.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenRegisters.cpp b/llvm/utils/TableGen/CodeGenRegisters.cpp
index e36066adf7a..4dd76813575 100644
--- a/llvm/utils/TableGen/CodeGenRegisters.cpp
+++ b/llvm/utils/TableGen/CodeGenRegisters.cpp
@@ -1780,7 +1780,7 @@ void CodeGenRegBank::computeRegUnitLaneMasks() {
const CodeGenRegister *SubRegister = S->second;
unsigned LaneMask = SubRegIndex->LaneMask;
// Distribute LaneMask to Register Units touched.
- for (const auto &SUI : SubRegister->getRegUnits()) {
+ for (unsigned SUI : SubRegister->getRegUnits()) {
bool Found = false;
unsigned u = 0;
for (unsigned RU : RegUnits) {
OpenPOWER on IntegriCloud