re PR bootstrap/83062 (Bootstrap failure: libsanitizer/tsan/tsan_rtl.h:713:44: error...
authorJan Hubicka <hubicka@ucw.cz>
Mon, 20 Nov 2017 09:55:02 +0000 (10:55 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 20 Nov 2017 09:55:02 +0000 (09:55 +0000)
PR bootstrap/83062
* ipa-inline.c (can_inline_edge_p): Fix typo in previous patch.

From-SVN: r254946

gcc/ChangeLog
gcc/ipa-inline.c

index c0bec3a4394a2e7302da17960b4b87c2dc379878..3cdba2e321cadda7801f5ee646f6817d3217a8ac 100644 (file)
@@ -1,3 +1,8 @@
+2017-11-20  Jan Hubicka  <hubicka@ucw.cz>
+
+       PR bootstrap/83062
+       * ipa-inline.c (can_inline_edge_p): Fix typo in previous patch.
+
 2017-11-20  Aldy Hernandez  <aldyh@redhat.com>
 
        * vec.h (debug_helper): New function.
index 4f1860fb284b8d673a723f7a0fce7abe96f5a89f..2c2706897d963b34f7699e05dfefe5d56efdaba8 100644 (file)
@@ -325,7 +325,7 @@ can_inline_edge_p (struct cgraph_edge *e, bool report,
       inlinable = false;
     }
   if (!early && (!opt_for_fn (callee->decl, optimize)
-                || opt_for_fn (caller->decl, optimize)))
+                || !opt_for_fn (caller->decl, optimize)))
     {
       e->inline_failed = CIF_FUNCTION_NOT_OPTIMIZED;
       inlinable = false;