summaryrefslogtreecommitdiff
path: root/runtime/class_table.cc
diff options
context:
space:
mode:
author Jayant Chowdhary <jchowdhary@google.com> 2017-02-28 10:54:20 -0800
committer Jayant Chowdhary <jchowdhary@google.com> 2017-03-10 16:23:18 -0800
commit8de129774aeb8ad4ae0623e2d335cfd52e63f5c1 (patch)
tree4d27de1d5b4c50c635aba9a0c340877f5136d8d6 /runtime/class_table.cc
parentd419beb312816edbf2186c12b15321d11c29996d (diff)
Fix issues due to updated toolchain.
Test: mma -j64 showcommands > make_log in platform/art. Also able to produce abi dumps using header-abi-dumper. Bug: 35845221 Change-Id: I569a1abff8df86da65af869b1c766ddeebf59ff4
Diffstat (limited to 'runtime/class_table.cc')
-rw-r--r--runtime/class_table.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/class_table.cc b/runtime/class_table.cc
index af4f998fdf..7c3ad12b61 100644
--- a/runtime/class_table.cc
+++ b/runtime/class_table.cc
@@ -55,6 +55,12 @@ mirror::Class* ClassTable::LookupByDescriptor(ObjPtr<mirror::Class> klass) {
return nullptr;
}
+// To take into account http://b/35845221
+#pragma clang diagnostic push
+#if __clang_major__ < 4
+#pragma clang diagnostic ignored "-Wunreachable-code"
+#endif
+
mirror::Class* ClassTable::UpdateClass(const char* descriptor, mirror::Class* klass, size_t hash) {
WriterMutexLock mu(Thread::Current(), lock_);
// Should only be updating latest table.
@@ -80,6 +86,8 @@ mirror::Class* ClassTable::UpdateClass(const char* descriptor, mirror::Class* kl
return existing;
}
+#pragma clang diagnostic pop
+
size_t ClassTable::CountDefiningLoaderClasses(ObjPtr<mirror::ClassLoader> defining_loader,
const ClassSet& set) const {
size_t count = 0;