mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Handle any exceptions while constructing compiler elements
Specifically, NG has a Rose which has a LeftEng which has a depth, which can throw an error on construction. If we put these in the try-catch we don't have to worry so much in future.
This commit is contained in:
parent
5fc2c803a2
commit
3b63a95f01
@ -227,10 +227,10 @@ hs_compile_multi_int(const char *const *expressions, const unsigned *flags,
|
|||||||
target_t target_info = platform ? target_t(*platform)
|
target_t target_info = platform ? target_t(*platform)
|
||||||
: get_current_target();
|
: get_current_target();
|
||||||
|
|
||||||
|
try {
|
||||||
CompileContext cc(isStreaming, isVectored, target_info, g);
|
CompileContext cc(isStreaming, isVectored, target_info, g);
|
||||||
NG ng(cc, elements, somPrecision);
|
NG ng(cc, elements, somPrecision);
|
||||||
|
|
||||||
try {
|
|
||||||
for (unsigned int i = 0; i < elements; i++) {
|
for (unsigned int i = 0; i < elements; i++) {
|
||||||
// Add this expression to the compiler
|
// Add this expression to the compiler
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user