From bb9a899b7c45b830c6b70e2811130a41ebb31ee5 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Thu, 20 Sep 2012 15:19:49 +1000 Subject: Remove exceptions and C++11 features for LLVM. --- impl/EquationSystem.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'impl/EquationSystem.hpp') diff --git a/impl/EquationSystem.hpp b/impl/EquationSystem.hpp index 4c55bd7..c0734aa 100644 --- a/impl/EquationSystem.hpp +++ b/impl/EquationSystem.hpp @@ -97,14 +97,16 @@ struct EquationSystem { Variable* varFromExpr(const Expression& expr) const { if (_expr_to_var) { // we've indexed: - auto* maxExpr = dynamic_cast*>(&expr); + const MaxExpression* maxExpr = dynamic_cast*>(&expr); if (maxExpr) { return (*_expr_to_var)[*maxExpr]; } else { return NULL; } } else { - throw "Must index max expressions before attempting lookup"; + std::cout << "throw exception" << *(char*)NULL; + return NULL; + //throw "Must index max expressions before attempting lookup"; } } -- cgit v1.2.3