Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/45225 )

Change subject: cpu: Delete an unnecessary return in RegId::flatIndex.
......................................................................

cpu: Delete an unnecessary return in RegId::flatIndex.

panic() is marked [[noreturn]], so there's no need to put a dummy return
after it.

Change-Id: Icebba480ef583a149188d4d6f9481fe0bbd95082
---
M src/cpu/reg_class.hh
1 file changed, 0 insertions(+), 1 deletion(-)



diff --git a/src/cpu/reg_class.hh b/src/cpu/reg_class.hh
index 9c4af45..fa8e2a1 100644
--- a/src/cpu/reg_class.hh
+++ b/src/cpu/reg_class.hh
@@ -192,7 +192,6 @@
             return Scale * regIdx + elemIdx;
         }
         panic("Trying to flatten a register without class!");
-        return -1;
     }
     /** @} */


--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/45225
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Icebba480ef583a149188d4d6f9481fe0bbd95082
Gerrit-Change-Number: 45225
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to