summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDodji Seketeli <dodji@redhat.com>2016-07-26 18:28:21 +0200
committerDodji Seketeli <dodji@redhat.com>2016-07-26 20:06:55 +0200
commit69024ca49cbdaf1f378e333ba068b431e533a4bf (patch)
tree2a131a5ddb8063c96441a1c084943baf65a9cc98
parentGeneralize DIE source concept in DWARF reader (diff)
downloadlibabigail-69024ca49cbdaf1f378e333ba068b431e533a4bf.tar.gz
libabigail-69024ca49cbdaf1f378e333ba068b431e533a4bf.tar.bz2
libabigail-69024ca49cbdaf1f378e333ba068b431e533a4bf.tar.xz
Misc code cleanup
* src/abg-dwarf-reader.cc (build_function_decl): Use the more readable is_class_type rather than a dynamic_cast. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
-rw-r--r--src/abg-dwarf-reader.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/abg-dwarf-reader.cc b/src/abg-dwarf-reader.cc
index 490ac6dc..821811ac 100644
--- a/src/abg-dwarf-reader.cc
+++ b/src/abg-dwarf-reader.cc
@@ -8578,7 +8578,7 @@ build_function_decl(read_context& ctxt,
8578 8578
8579 size_t is_inline = die_is_declared_inline(die); 8579 size_t is_inline = die_is_declared_inline(die);
8580 class_decl_sptr is_method = 8580 class_decl_sptr is_method =
8581 dynamic_pointer_cast<class_decl>(get_scope_for_die(ctxt, die, true, where_offset)); 8581 is_class_type(get_scope_for_die(ctxt, die, true, where_offset));
8582 8582
8583 if (result) 8583 if (result)
8584 { 8584 {