summaryrefslogtreecommitdiff
path: root/kernel/consteval.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-07-22 20:58:44 +0200
committerClifford Wolf <clifford@clifford.at>2014-07-22 20:58:44 +0200
commit28b3fd05fa9cf6d469fdec95e247a7ffe5bc001d (patch)
tree9a847fc2fc608ce9ffbc947bcb18eea2205bb2d5 /kernel/consteval.h
parent7bffde6abdaf6fc2ed090946442f90b2438e6126 (diff)
SigSpec refactoring: change RTLIL::SigSpec::chunks() to be read-only, created interim RTLIL::SigSpec::chunks_rw()
Diffstat (limited to 'kernel/consteval.h')
-rw-r--r--kernel/consteval.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/consteval.h b/kernel/consteval.h
index 564098c6..5836cdd5 100644
--- a/kernel/consteval.h
+++ b/kernel/consteval.h
@@ -73,7 +73,7 @@ struct ConstEval
RTLIL::SigSpec current_val = values_map(sig);
current_val.expand();
for (size_t i = 0; i < current_val.chunks().size(); i++) {
- RTLIL::SigChunk &chunk = current_val.chunks()[i];
+ const RTLIL::SigChunk &chunk = current_val.chunks()[i];
assert(chunk.wire != NULL || chunk.data.bits[0] == value.bits[i]);
}
#endif