tooling: breaking off my tooling changes in the big batch PR so they can be used (#850)

This commit is contained in:
Tyler Wilding
2021-09-19 21:45:14 -04:00
committed by GitHub
parent 8caf398ac0
commit df92a55749
5 changed files with 128 additions and 29 deletions
+4 -2
View File
@@ -657,7 +657,8 @@ void SimpleExpressionElement::update_from_stack_div_s(const Env& env,
GenericOperator::make_fixed(FixedOperatorKind::DIVISION), args.at(0), args.at(1));
result->push_back(new_form);
} else {
throw std::runtime_error(fmt::format("Floating point division attempted on invalid types."));
throw std::runtime_error(
fmt::format("Floating point division attempted on invalid types at OP: [{}].", m_my_idx));
}
}
@@ -789,7 +790,8 @@ void SimpleExpressionElement::update_from_stack_float_1(const Env& env,
pool.alloc_element<GenericElement>(GenericOperator::make_fixed(kind), args.at(0));
result->push_back(new_form);
} else {
throw std::runtime_error(fmt::format("Floating point division attempted on invalid types."));
throw std::runtime_error(
fmt::format("Floating point division attempted on invalid types at OP: [{}].", m_my_idx));
}
}