mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internals: Add more const. No functional change intended.
This commit is contained in:
+1
-1
@@ -353,7 +353,7 @@ private:
|
||||
virtual void visit(AstInitArray* nodep) override {
|
||||
// Hash unpacked array initializers by value, as the order of initializer nodes does not
|
||||
// matter, and we want semantically equivalent initializers to map to the same hash.
|
||||
AstUnpackArrayDType* const dtypep = VN_CAST(nodep->dtypep(), UnpackArrayDType);
|
||||
const AstUnpackArrayDType* const dtypep = VN_CAST(nodep->dtypep(), UnpackArrayDType);
|
||||
m_hash += hashNodeAndIterate(nodep, HASH_DTYPE, /* hashChildren: */ !dtypep, [=]() {
|
||||
if (dtypep) {
|
||||
const uint32_t size = dtypep->elementsConst();
|
||||
|
||||
Reference in New Issue
Block a user