[llvm] r215948 - Use a range loop. NFC.
Rafael Espindola
rafael.espindola at gmail.com
Mon Aug 18 16:16:00 PDT 2014
Author: rafael
Date: Mon Aug 18 18:15:59 2014
New Revision: 215948
URL: http://llvm.org/viewvc/llvm-project?rev=215948&view=rev
Log:
Use a range loop. NFC.
Modified:
llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp
Modified: llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp?rev=215948&r1=215947&r2=215948&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp Mon Aug 18 18:15:59 2014
@@ -348,8 +348,8 @@ void ExecutionEngine::runStaticConstruct
void ExecutionEngine::runStaticConstructorsDestructors(bool isDtors) {
// Execute global ctors/dtors for each module in the program.
- for (unsigned i = 0, e = Modules.size(); i != e; ++i)
- runStaticConstructorsDestructors(Modules[i], isDtors);
+ for (Module *M : Modules)
+ runStaticConstructorsDestructors(M, isDtors);
}
#ifndef NDEBUG
More information about the llvm-commits
mailing list