Skip to content

Commit

Permalink
Only check the outer most memory reads for jump table format
Browse files Browse the repository at this point in the history
  • Loading branch information
mxz297 committed Jun 12, 2016
1 parent 4e5f3ce commit e6adc0d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion parseAPI/src/IndirectASTVisitor.C
Expand Up @@ -415,12 +415,16 @@ AST::Ptr JumpTableFormatVisitor::visit(DataflowAPI::RoseAST *ast) {
}
}
}
if (findIncorrectFormat) {
format = false;
}
return AST::Ptr();
}
if (!findIncorrectFormat) {
unsigned totalChildren = ast->numChildren();
for (unsigned i = 0 ; i < totalChildren; ++i) {
ast->child(i)->accept(this);
}
} else format = false;
}
return AST::Ptr();
}

0 comments on commit e6adc0d

Please sign in to comment.