From 41ba35dbf0cf4610588716dcb331ff558c48f1ae Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Thu, 27 Oct 2016 11:50:18 -0700 Subject: [PATCH] ART: Add missing PrettyCause Add missing name. Refactor so that build breaks next time anyone forgets adding this. Bug: 31385027 Test: m test-art-host Change-Id: I7f5a510b56829aa39e8ca6bcff11c3e9eee95000 --- runtime/gc/gc_cause.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/gc/gc_cause.cc b/runtime/gc/gc_cause.cc index 1d377a4fb..7ff845d98 100644 --- a/runtime/gc/gc_cause.cc +++ b/runtime/gc/gc_cause.cc @@ -38,10 +38,10 @@ const char* PrettyCause(GcCause cause) { case kGcCauseDebugger: return "Debugger"; case kGcCauseClassLinker: return "ClassLinker"; case kGcCauseJitCodeCache: return "JitCodeCache"; - default: - LOG(FATAL) << "Unreachable"; - UNREACHABLE(); + case kGcCauseAddRemoveSystemWeakHolder: return "SystemWeakHolder"; } + LOG(FATAL) << "Unreachable"; + UNREACHABLE(); } std::ostream& operator<<(std::ostream& os, const GcCause& gc_cause) { -- 2.11.0