Skip to content

Commit

Permalink
Avoid optimizer detecting page fault
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrel committed Jul 31, 2024
1 parent b9dae66 commit 8fcf8fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/array.d
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ if (isInputRange!Values && isInputRange!Keys)
{
struct ValueRange
{
string front () const @system { int* ptr = cast(int*)42; *ptr = 42; return null; }
string front() const @system;
@safe:
void popFront() {}
bool empty() const { return false; }
Expand Down

0 comments on commit 8fcf8fa

Please sign in to comment.