This commit is contained in:
yhirose 2023-04-30 10:29:55 +09:00
parent ed84bb7219
commit 86208ed9e9

View File

@ -1003,6 +1003,9 @@ public:
size_t len = static_cast<size_t>(-1); size_t len = static_cast<size_t>(-1);
if (!for_label_) { c.cut_stack.push_back(false); } if (!for_label_) { c.cut_stack.push_back(false); }
auto se = scope_exit([&]() {
if (!for_label_) { c.cut_stack.pop_back(); }
});
size_t id = 0; size_t id = 0;
for (const auto &ope : opes_) { for (const auto &ope : opes_) {
@ -1030,8 +1033,6 @@ public:
id++; id++;
} }
if (!for_label_) { c.cut_stack.pop_back(); }
return len; return len;
} }