diff options
Diffstat (limited to 'gcc/lazy-diagnostic-path.cc')
-rw-r--r-- | gcc/lazy-diagnostic-path.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/lazy-diagnostic-path.cc b/gcc/lazy-diagnostic-path.cc index 1474f70..34743e3 100644 --- a/gcc/lazy-diagnostic-path.cc +++ b/gcc/lazy-diagnostic-path.cc @@ -91,20 +91,24 @@ 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 { tree fntype_void_void - = build_function_type_array (void_type_node, 0, NULL); + = build_function_type_array (void_type_node, 0, nullptr); 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; }; |