Merge pull request #99 from halirutan/fix_missing_return_statement

Fix missing return statement in lambda
This commit is contained in:
yhirose 2020-04-10 21:24:52 -04:00 committed by GitHub
commit ab9a09bb88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3138,6 +3138,8 @@ private:
case Loop::Type::oom: return oom(ope); case Loop::Type::oom: return oom(ope);
case Loop::Type::rep: // Regex-like repetition case Loop::Type::rep: // Regex-like repetition
return rep(ope, loop.range.first, loop.range.second); return rep(ope, loop.range.first, loop.range.second);
default:
throw std::runtime_error("Unhandled enum constant");
} }
} }
}; };