mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:07:34 +00:00
LibRegex: Add some implied auto qualifiers
This commit is contained in:
parent
1fdd1915c2
commit
b674de6957
4 changed files with 10 additions and 10 deletions
|
@ -213,7 +213,7 @@ void Regex<Parser>::attempt_rewrite_loops_as_atomic_groups(BasicBlockList const&
|
|||
if constexpr (REGEX_DEBUG) {
|
||||
RegexDebug dbg;
|
||||
dbg.print_bytecode(*this);
|
||||
for (auto& block : basic_blocks)
|
||||
for (auto const& block : basic_blocks)
|
||||
dbgln("block from {} to {}", block.start, block.end);
|
||||
}
|
||||
|
||||
|
@ -264,7 +264,7 @@ void Regex<Parser>::attempt_rewrite_loops_as_atomic_groups(BasicBlockList const&
|
|||
auto is_an_eligible_jump = [](OpCode const& opcode, size_t ip, size_t block_start, AlternateForm alternate_form) {
|
||||
switch (opcode.opcode_id()) {
|
||||
case OpCodeId::JumpNonEmpty: {
|
||||
auto& op = static_cast<OpCode_JumpNonEmpty const&>(opcode);
|
||||
auto const& op = static_cast<OpCode_JumpNonEmpty const&>(opcode);
|
||||
auto form = op.form();
|
||||
if (form != OpCodeId::Jump && alternate_form == AlternateForm::DirectLoopWithHeader)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue