llvm.org GIT mirror llvm / 11e71d6
[ModuleUtils] Use range-based loop. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264122 91177308-0d34-0410-b5e6-96231b3b80d8 Davide Italiano 3 years ago
1 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
9898 return GV;
9999
100100 const ConstantArray *Init = cast(GV->getInitializer());
101 for (unsigned I = 0, E = Init->getNumOperands(); I != E; ++I) {
102 Value *Op = Init->getOperand(I);
101 for (Value *Op : Init->operands()) {
103102 GlobalValue *G = cast(Op->stripPointerCastsNoFollowAliases());
104103 Set.insert(G);
105104 }