From: David Malcolm Date: Mon, 19 Jan 2015 17:16:37 +0000 (+0000) Subject: jit: fix crash in memento_of_new_string_literal::make_debug_string X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=450e225b585ca3c9b4cb9fc2d06e620e7a0b457d;p=gcc.git jit: fix crash in memento_of_new_string_literal::make_debug_string gcc/jit/ChangeLog: * jit-recording.c (gcc::jit::recording::memento_of_new_string_literal::make_debug_string): Add missing format string. From-SVN: r219851 --- diff --git a/gcc/jit/ChangeLog b/gcc/jit/ChangeLog index 51549216b24..c577fa08e09 100644 --- a/gcc/jit/ChangeLog +++ b/gcc/jit/ChangeLog @@ -1,3 +1,9 @@ +2015-01-19 David Malcolm + + * jit-recording.c + (gcc::jit::recording::memento_of_new_string_literal::make_debug_string): + Add missing format string. + 2015-01-16 David Malcolm * Make-lang.in (lang_checks_parallelized): Add "check-jit". diff --git a/gcc/jit/jit-recording.c b/gcc/jit/jit-recording.c index 76eabbdf3c7..2900e182746 100644 --- a/gcc/jit/jit-recording.c +++ b/gcc/jit/jit-recording.c @@ -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 ()); }