[1/4] ir: Improve legibility of set_member_function_is_virtual

Message ID 20240817120026.459568-1-dodji@redhat.com
State New
Headers
Series [1/4] ir: Improve legibility of set_member_function_is_virtual |

Commit Message

Dodji Seketeli Aug. 17, 2024, noon UTC
  * src/abg-ir.cc (set_member_function_is_virtual): Remove
	useless white space and use clearer helper function.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
---
 src/abg-ir.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
  

Patch

diff --git a/src/abg-ir.cc b/src/abg-ir.cc
index 542f9060..bc23254a 100644
--- a/src/abg-ir.cc
+++ b/src/abg-ir.cc
@@ -6730,8 +6730,7 @@  set_member_function_is_virtual(const function_decl_sptr& fn, bool is_virtual)
   if (fn)
     {
       set_member_function_is_virtual(*fn, is_virtual);
-      fixup_virtual_member_function
-	(dynamic_pointer_cast<method_decl>(fn));
+      fixup_virtual_member_function(is_method_decl(fn));
     }
 }