Fix abigail::ir::get_type_scope()
authorDodji Seketeli <dodji@redhat.com>
Mon, 31 Oct 2016 13:13:06 +0000 (14:13 +0100)
committerDodji Seketeli <dodji@redhat.com>
Thu, 3 Nov 2016 14:12:20 +0000 (15:12 +0100)
It appears that abigail::ir::get_type_scope() was always returning nil
due to a thinko. Oops.  This pach fixes that.

* src/abg-ir.cc (get_type_scope): Do not always return nil.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-ir.cc

index 11a632bc8a9e5ff7cc78a76f93333c58e18ab4e3..8e7e1d197101afd9607664854894e7b8cf4dad2c 100644 (file)
@@ -4937,7 +4937,7 @@ get_type_scope(type_base* t)
 
   decl_base* d = get_type_declaration(t);
   if (d)
-    d->get_scope();
+    return d->get_scope();
   return 0;
 }