aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree-flow-inline.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2eee991..fb6bbdd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2009-04-17 Cary Coutant <ccoutant@google.com>
+
+ * tree-flow-inline.h (get_lineno): Fix inverted test.
+
2009-04-17 Diego Novillo <dnovillo@google.com>
* tree-ssa-pre.c (create_expression_by_pieces): Remove
diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h
index 7de8db8..536a111 100644
--- a/gcc/tree-flow-inline.h
+++ b/gcc/tree-flow-inline.h
@@ -234,7 +234,7 @@ get_lineno (const_gimple stmt)
return -1;
loc = gimple_location (stmt);
- if (loc != UNKNOWN_LOCATION)
+ if (loc == UNKNOWN_LOCATION)
return -1;
return LOCATION_LINE (loc);