summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-05-05 20:06:41 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-05-05 20:06:41 +0000
commit9c8c96f08a39496805a63f67761e0dc42b43e9cc (patch)
treed9edbac29f063e80632826cca13b6d0c58f8b53b
parent871de4ff4dbc920c5013f800048eb5c3c9314c46 (diff)
downloadbcm5719-llvm-9c8c96f08a39496805a63f67761e0dc42b43e9cc.tar.gz
bcm5719-llvm-9c8c96f08a39496805a63f67761e0dc42b43e9cc.zip
Use a range loop.
llvm-svn: 207996
-rw-r--r--llvm/lib/LTO/LTOCodeGenerator.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/LTO/LTOCodeGenerator.cpp b/llvm/lib/LTO/LTOCodeGenerator.cpp
index 1dd0721493d..028c1912717 100644
--- a/llvm/lib/LTO/LTOCodeGenerator.cpp
+++ b/llvm/lib/LTO/LTOCodeGenerator.cpp
@@ -429,9 +429,7 @@ void LTOCodeGenerator::applyScopeRestrictions() {
if (!AsmUsed.empty()) {
llvm::Type *i8PTy = llvm::Type::getInt8PtrTy(Context);
std::vector<Constant*> asmUsed2;
- for (SmallPtrSet<GlobalValue*, 16>::const_iterator i = AsmUsed.begin(),
- e = AsmUsed.end(); i !=e; ++i) {
- GlobalValue *GV = *i;
+ for (auto *GV : AsmUsed) {
Constant *c = ConstantExpr::getBitCast(GV, i8PTy);
asmUsed2.push_back(c);
}
OpenPOWER on IntegriCloud