Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(807)

Unified Diff: src/objects.cc

Issue 502933003: Remove default case from switch in DependentCode::DependencyGroupName. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "?";
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698