diff options
Diffstat (limited to 'gcc/lazy-diagnostic-path.cc')
-rw-r--r-- | gcc/lazy-diagnostic-path.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/lazy-diagnostic-path.cc b/gcc/lazy-diagnostic-path.cc index 1474f70..37c8e25 100644 --- a/gcc/lazy-diagnostic-path.cc +++ b/gcc/lazy-diagnostic-path.cc @@ -91,7 +91,8 @@ class test_lazy_path : public lazy_diagnostic_path { public: test_lazy_path (pretty_printer &pp) - : m_pp (pp) + : lazy_diagnostic_path (m_logical_loc_mgr), + m_pp (pp) { } std::unique_ptr<diagnostic_path> make_inner_path () const final override @@ -99,12 +100,15 @@ public: tree fntype_void_void = build_function_type_array (void_type_node, 0, NULL); tree fndecl_foo = build_fn_decl ("foo", fntype_void_void); - auto path = std::make_unique<simple_diagnostic_path> (&m_pp); + auto path + = std::make_unique<simple_diagnostic_path> (m_logical_loc_mgr, + &m_pp); path->add_event (UNKNOWN_LOCATION, fndecl_foo, 0, "first %qs", "free"); path->add_event (UNKNOWN_LOCATION, fndecl_foo, 0, "double %qs", "free"); return path; } private: + const tree_logical_location_manager m_logical_loc_mgr; pretty_printer &m_pp; }; |