Internals: Add more const. No functional change intended.

This commit is contained in:
Wilson Snyder
2021-11-13 13:50:44 -05:00
parent 4cb5c1e1db
commit 37e3c6da70
85 changed files with 1172 additions and 1115 deletions
+2 -2
View File
@@ -168,7 +168,7 @@ private:
return;
}
// Of a constant index
AstConst* const lbitp = VN_CAST(lselp->bitp(), Const);
const AstConst* const lbitp = VN_CAST(lselp->bitp(), Const);
if (!lbitp) {
mergeEnd();
return;
@@ -192,7 +192,7 @@ private:
uint32_t rindex = lindex;
if (rconstp) { // Ok
} else if (rselp) {
AstConst* const rbitp = VN_CAST(rselp->bitp(), Const);
const AstConst* const rbitp = VN_CAST(rselp->bitp(), Const);
rvarrefp = VN_CAST(rselp->fromp(), NodeVarRef);
if (!rbitp || !rvarrefp || lvarrefp->varp() == rvarrefp->varp()) {
mergeEnd();