diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mem/ruby/common/NetDest.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mem/ruby/common/NetDest.cc b/src/mem/ruby/common/NetDest.cc index 2d070d33d..97788345c 100644 --- a/src/mem/ruby/common/NetDest.cc +++ b/src/mem/ruby/common/NetDest.cc @@ -38,6 +38,7 @@ NetDest::NetDest() void NetDest::add(MachineID newElement) { + assert(bitIndex(newElement.num) < m_bits[vecIndex(newElement)].getSize()); m_bits[vecIndex(newElement)].add(bitIndex(newElement.num)); } |