diff options
Diffstat (limited to 'lib/Solver/Solver.cpp')
-rw-r--r-- | lib/Solver/Solver.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Solver/Solver.cpp b/lib/Solver/Solver.cpp index 855f7102..12cfb180 100644 --- a/lib/Solver/Solver.cpp +++ b/lib/Solver/Solver.cpp @@ -223,10 +223,9 @@ std::pair< ref<Expr>, ref<Expr> > Solver::getRange(const Query& query) { void Query::dump() const { llvm::errs() << "Constraints [\n"; - for (ConstraintManager::const_iterator i = constraints.begin(); - i != constraints.end(); i++) { - (*i)->dump(); - } + for (const auto &constraint : constraints) + constraint->dump(); + llvm::errs() << "]\n"; llvm::errs() << "Query [\n"; expr->dump(); |