aboutsummaryrefslogtreecommitdiff
path: root/gcc/analyzer/record-layout.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/analyzer/record-layout.cc')
-rw-r--r--gcc/analyzer/record-layout.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/analyzer/record-layout.cc b/gcc/analyzer/record-layout.cc
index aaf8ccd..3446536 100644
--- a/gcc/analyzer/record-layout.cc
+++ b/gcc/analyzer/record-layout.cc
@@ -30,7 +30,7 @@ namespace ana {
/* class record_layout. */
-record_layout::record_layout (tree record_type)
+record_layout::record_layout (const_tree record_type)
{
gcc_assert (TREE_CODE (record_type) == RECORD_TYPE);
@@ -86,7 +86,7 @@ record_layout::get_item_at (bit_offset_t offset) const
FOR_EACH_VEC_ELT (m_items, i, it)
if (it->contains_p (offset))
return it;
- return NULL;
+ return nullptr;
}
/* Subroutine of ctor. Add padding item to NEXT_OFFSET if necessary. */