summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2017-02-08 21:02:37 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-02-08 21:02:38 +0000
commit1ce5909dfc6302f081cad3f68eb40e3d86974c13 (patch)
tree420a8693565a10fc60db78f9f3941f9e5bd466e8
parent390194398b566e92fdb35c980b50bfacfb23add6 (diff)
parenteca0dea9f103a19042f0d3505af1126ac97be0dd (diff)
Merge "Revert -Wunreachable-code workaround."
-rw-r--r--runtime/class_table.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/runtime/class_table.cc b/runtime/class_table.cc
index ff846a718e..f1458b42ab 100644
--- a/runtime/class_table.cc
+++ b/runtime/class_table.cc
@@ -55,10 +55,6 @@ mirror::Class* ClassTable::LookupByDescriptor(ObjPtr<mirror::Class> klass) {
return nullptr;
}
-// Bug: http://b/31104323 Ignore -Wunreachable-code from the for loop below
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wunreachable-code"
-
mirror::Class* ClassTable::UpdateClass(const char* descriptor, mirror::Class* klass, size_t hash) {
WriterMutexLock mu(Thread::Current(), lock_);
// Should only be updating latest table.
@@ -84,8 +80,6 @@ mirror::Class* ClassTable::UpdateClass(const char* descriptor, mirror::Class* kl
return existing;
}
-#pragma clang diagnostic pop // http://b/31104323
-
size_t ClassTable::CountDefiningLoaderClasses(ObjPtr<mirror::ClassLoader> defining_loader,
const ClassSet& set) const {
size_t count = 0;