aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r--gcc/cp/parser.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index d67fa3b..591f44f 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -895,10 +895,7 @@ cp_lexer_get_preprocessor_token (cp_lexer *lexer, cp_token *token)
static inline void
cp_lexer_set_source_position_from_token (cp_token *token)
{
- if (token->type != CPP_EOF)
- {
- input_location = token->location;
- }
+ input_location = token->location;
}
/* Update the globals input_location and the input file stack from LEXER. */