aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplex.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r--gcc/cpplex.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c
index 552a406..d6c617d3 100644
--- a/gcc/cpplex.c
+++ b/gcc/cpplex.c
@@ -714,15 +714,15 @@ _cpp_get_fresh_line (pfile)
"no newline at end of file");
}
+ if (!buffer->prev)
+ return false;
+
if (buffer->return_at_eof)
{
- buffer->return_at_eof = false;
+ _cpp_pop_buffer (pfile);
return false;
}
- if (!buffer->prev)
- return false;
-
_cpp_pop_buffer (pfile);
}
}