diff options
| -rw-r--r-- | tools/hiddenapi/hiddenapi.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/hiddenapi/hiddenapi.cc b/tools/hiddenapi/hiddenapi.cc index 97fbcbf3e0..f426d02c5b 100644 --- a/tools/hiddenapi/hiddenapi.cc +++ b/tools/hiddenapi/hiddenapi.cc @@ -974,11 +974,8 @@ class HiddenApi final { auto fn_shared = [&](const DexMember& boot_member) { auto it = api_list.find(boot_member.GetApiEntry()); bool api_list_found = (it != api_list.end()); - // TODO: Fix ART buildbots and turn this into a CHECK. - if (force_assign_all_ && !api_list_found) { - LOG(WARNING) << "Could not find hiddenapi flags for dex entry: " - << boot_member.GetApiEntry(); - } + CHECK(!force_assign_all_ || api_list_found) + << "Could not find hiddenapi flags for dex entry: " << boot_member.GetApiEntry(); builder.WriteFlags(api_list_found ? it->second : ApiList::Whitelist()); }; auto fn_field = [&](const ClassAccessor::Field& boot_field) { |