From 6eee2bbbbb1281ca2257f67bf16d60c250359616 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 1 Dec 2014 19:08:07 +0000 Subject: [PATCH] Use a range loop. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223066 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Linker/LinkModules.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index 78826c28c03..412ccd88b2a 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -794,9 +794,9 @@ void ModuleLinker::computeTypeMapping() { TypeFinder SrcStructTypes; SrcStructTypes.run(*SrcM, true); - for (unsigned i = 0, e = SrcStructTypes.size(); i != e; ++i) { - StructType *ST = SrcStructTypes[i]; - if (!ST->hasName()) continue; + for (StructType *ST : SrcStructTypes) { + if (!ST->hasName()) + continue; // Check to see if there is a dot in the name followed by a digit. size_t DotPos = ST->getName().rfind('.'); -- 2.34.1