diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-03-31 18:06:27 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-03-31 18:06:27 +0200 |
commit | 9b1ce98db6bdca93de194a1845c25409b96900c1 (patch) | |
tree | a4f4ac561afbc9805b10c74c088ee4d62aaa9e01 /kernel | |
parent | b66e9fb3482a67a69e822b39b5764e715f8c684a (diff) | |
download | yosys-9b1ce98db6bdca93de194a1845c25409b96900c1.tar.gz yosys-9b1ce98db6bdca93de194a1845c25409b96900c1.tar.bz2 yosys-9b1ce98db6bdca93de194a1845c25409b96900c1.zip |
Fixed "select" for "%%" stmt with emty stack
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/select.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/select.cc b/kernel/select.cc index a6e675c88..3a91c1e40 100644 --- a/kernel/select.cc +++ b/kernel/select.cc @@ -471,7 +471,8 @@ static void select_stmt(RTLIL::Design *design, std::string arg) select_op_expand(design, arg, 'o'); } else log_cmd_error("Unknown selection operator '%s'.\n", arg.c_str()); - select_filter_active_mod(design, work_stack.back()); + if (work_stack.size() >= 1) + select_filter_active_mod(design, work_stack.back()); return; } |