aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/lex.c')
-rw-r--r--gcc/java/lex.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/java/lex.c b/gcc/java/lex.c
index dddb3cd..338f3d5 100644
--- a/gcc/java/lex.c
+++ b/gcc/java/lex.c
@@ -1642,7 +1642,10 @@ static tree
build_wfl_node (node)
tree node;
{
- return build_expr_wfl (node, ctxp->filename, ctxp->elc.line, ctxp->elc.col);
+ node = build_expr_wfl (node, ctxp->filename, ctxp->elc.line, ctxp->elc.col);
+ /* Prevent java_complete_lhs from short-circuiting node (if constant). */
+ TREE_TYPE (node) = NULL_TREE;
+ return node;
}
#endif