f0f5233 Cleanup functions to detect infinite comparison of class_decl

Authored and Committed by Dodji Seketeli 8 years ago
    Cleanup functions to detect infinite comparison of class_decl
    
    While looking around, I found some things in need of a cleanup.  This
    patch addresses those.
    
    	* src/abg-ir.cc (class_decl::priv::unmark_as_being_compared): In
    	the overload that takes a pointer to class_decl, re-use the
    	overload that takes a reference.
    	(class_decl::priv::comparison_started): Do not crash if the klass
    	pointer is nil.
    	(equals): In the overload for class_decl&, undef the RESULT macro
    	when it's not used anymore.
    
    Signed-off-by: Dodji Seketeli <dodji@redhat.com>
    
        
file modified
+8 -4