jit: fix crash in memento_of_new_string_literal::make_debug_string
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 19 Jan 2015 17:16:37 +0000 (17:16 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 19 Jan 2015 17:16:37 +0000 (17:16 +0000)
gcc/jit/ChangeLog:
* jit-recording.c
(gcc::jit::recording::memento_of_new_string_literal::make_debug_string):
Add missing format string.

From-SVN: r219851

gcc/jit/ChangeLog
gcc/jit/jit-recording.c

index 51549216b244aa047b1c5a2cc4e740ac4c29196a..c577fa08e0913b574468701953d2859043d77f56 100644 (file)
@@ -1,3 +1,9 @@
+2015-01-19  David Malcolm  <dmalcolm@redhat.com>
+
+       * jit-recording.c
+       (gcc::jit::recording::memento_of_new_string_literal::make_debug_string):
+       Add missing format string.
+
 2015-01-16  David Malcolm  <dmalcolm@redhat.com>
 
        * Make-lang.in (lang_checks_parallelized): Add "check-jit".
index 76eabbdf3c7b2ed45b3aa87007ef077996715d89..2900e1827464dd0d6c311134dace6ef53cd8f642 100644 (file)
@@ -4012,6 +4012,7 @@ recording::string *
 recording::memento_of_new_string_literal::make_debug_string ()
 {
   return string::from_printf (m_ctxt,
+                             "%s",
                              m_value->get_debug_string ());
 }