diff mbox series

[04/11] C++: add cp_expr::strip_any_location_wrapper method

Message ID 1510973563-10046-5-git-send-email-dmalcolm@redhat.com
State New
Headers show
Series C++: locations for (almost) everything (PR 43486) | expand

Commit Message

David Malcolm Nov. 18, 2017, 2:52 a.m. UTC
This is needed by perform_koenig_lookup.

gcc/cp/ChangeLog:
	* cp-tree.h (cp_expr::strip_any_location_wrapper): New method.
---
 gcc/cp/cp-tree.h | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 63e9bff..f9c589d 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -95,6 +95,11 @@  public:
 
   cp_expr& maybe_add_location_wrapper ();
 
+  void strip_any_location_wrapper ()
+  {
+    STRIP_ANY_LOCATION_WRAPPER (m_value);
+  }
+
  private:
   tree m_value;
   location_t m_loc;