Skip to content

Commit

Permalink
Merge pull request #1732 from blackwhale/revert-wa-regex
Browse files Browse the repository at this point in the history
[TRIVIAL] CTFE bug 9634 was fixed, remove the workaround
  • Loading branch information
monarchdodra committed Nov 28, 2013
2 parents 90e7c10 + 3e22b63 commit a419cd2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions std/regex.d
Expand Up @@ -1330,14 +1330,7 @@ struct Parser(R)
}
put(Bytecode(greedy ? IR.InfiniteStart : IR.InfiniteQStart, len));
enforce(ir.length + len < maxCompiledLength, "maximum compiled pattern length is exceeded");
//workaround @@@BUG@@@ 9634
if(__ctfe)
{
foreach(v; ir[offset .. offset+len])
ir ~= v;
}
else
ir ~= ir[offset .. offset+len];
ir ~= ir[offset .. offset+len];
//IR.InfinteX is always a hotspot
put(Bytecode(greedy ? IR.InfiniteEnd : IR.InfiniteQEnd, len));
put(Bytecode.init); //merge index
Expand Down

0 comments on commit a419cd2

Please sign in to comment.