diff options
Diffstat (limited to 'src/mem/cache/queue.hh')
-rw-r--r-- | src/mem/cache/queue.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/cache/queue.hh b/src/mem/cache/queue.hh index 1d7ce0c07..36ddb96c2 100644 --- a/src/mem/cache/queue.hh +++ b/src/mem/cache/queue.hh @@ -52,6 +52,7 @@ #include <cassert> #include <string> +#include "base/logging.hh" #include "base/trace.hh" #include "base/types.hh" #include "debug/Drain.hh" @@ -108,8 +109,7 @@ class Queue : public Drainable return readyList.insert(i, entry); } } - assert(false); - return readyList.end(); // keep stupid compilers happy + panic("Failed to add to ready list."); } /** The number of entries that are in service. */ |