Reviewers: Sven Panne,

Description:
Remove default case from switch in DependentCode::DependencyGroupName.

[email protected]

Please review this at https://codereview.chromium.org/502933003/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+4, -3 lines):
  M src/objects.cc


Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index b6e0eaca94a8871cc780adea4225941fb672709c..d7753a71cc05f0fccf24fc73d0478230ae3f63db 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -11677,10 +11677,11 @@ const char* DependentCode::DependencyGroupName(DependencyGroup group) {
       return "allocation-site-tenuring-changed";
     case kAllocationSiteTransitionChangedGroup:
       return "allocation-site-transition-changed";
-    default:
-      UNREACHABLE();
-      return "?";
+    case kGroupCount:
+      break;  // Enum count, not a valid group value.
   }
+  UNREACHABLE();
+  return "?";
 }




--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to