aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2009-04-17 23:58:12 +0000
committerCary Coutant <ccoutant@gcc.gnu.org>2009-04-17 16:58:12 -0700
commit668fb0e80cdf99faac329d5f7702966bf4a65832 (patch)
treea4c3f5f19c2b95740a0ef2e6a3a1d2eba0c692f7
parent4d4014c1cd5c2336ff2d67130a88b408795720a9 (diff)
downloadgcc-668fb0e80cdf99faac329d5f7702966bf4a65832.zip
gcc-668fb0e80cdf99faac329d5f7702966bf4a65832.tar.gz
gcc-668fb0e80cdf99faac329d5f7702966bf4a65832.tar.bz2
* tree-flow-inline.h (get_lineno): Fix inverted test.
From-SVN: r146299
-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);