diff options
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 3197cef7703..ce522357ee2 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -145,7 +145,7 @@ static location_t expr_location_or (tree t, location_t loc) { location_t tloc = EXPR_LOCATION (t); - return IS_UNKNOWN_LOCATION (tloc) ? loc : tloc; + return tloc == UNKNOWN_LOCATION ? loc : tloc; } /* Similar to protected_set_expr_location, but never modify x in place, |