Automatic date update in version.in
[platform/upstream/binutils.git] / gold / aarch64-reloc-property.cc
index beaed10..16f8449 100644 (file)
@@ -130,9 +130,8 @@ AArch64_reloc_property_table::AArch64_reloc_property_table()
 std::string
 AArch64_reloc_property_table::reloc_name_in_error_message(unsigned int code)
 {
-  gold_assert(code < Property_table_size);
-
-  const AArch64_reloc_property* arp = this->table_[code];
+  int tidx = code_to_array_index(code);
+  const AArch64_reloc_property* arp = this->table_[tidx];
 
   if (arp == NULL)
     {