Commit 8b122bfe authored by Kevin Modzelewski's avatar Kevin Modzelewski

Simple heuristic: 'next' usually throws

parent 456384d8
......@@ -200,6 +200,8 @@ CompiledFunction* compileFunction(CLFunction* f, FunctionSpecialization* spec, E
ExceptionStyle exception_style = CXX;
if (FORCE_LLVM_CAPI_THROWS)
exception_style = CAPI;
if (name == "next")
exception_style = CAPI;
if (VERBOSITY("irgen") >= 1) {
std::string s;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment