Skip to content
Snippets Groups Projects
Commit 9459d3ad authored by Vassil Vassilev's avatar Vassil Vassilev
Browse files

Iterate over the decls in reverse order.

Shouldn't matter for codegen.
parent 42a6125b
No related branches found
No related tags found
No related merge requests found
......@@ -739,8 +739,8 @@ namespace cling {
DeclReverter DeclRev(m_Sema, m_EEngine, T);
bool Successful = true;
for (Transaction::const_iterator I = T->decls_begin(),
E = T->decls_end(); I != E; ++I) {
for (Transaction::const_reverse_iterator I = T->rdecls_begin(),
E = T->rdecls_end(); I != E; ++I) {
if ((*I).m_Call != Transaction::kCCIHandleTopLevelDecl)
continue;
const DeclGroupRef& DGR = (*I).m_DGR;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment