Internals: Clean up some constructors. No functional change intended.

This commit is contained in:
Wilson Snyder
2025-07-03 18:59:32 -04:00
parent 08fef668cd
commit 6c9cbaef62
17 changed files with 66 additions and 66 deletions
+2 -2
View File
@@ -276,7 +276,7 @@ class CodeMotionAnalysisVisitor final : public VNVisitorConst {
// CONSTRUCTOR
CodeMotionAnalysisVisitor(AstNode* nodep, StmtPropertiesAllocator& stmtProperties)
: m_stmtProperties(stmtProperties) {
: m_stmtProperties{stmtProperties} {
iterateAndNextConstNull(nodep);
}
@@ -399,7 +399,7 @@ class CodeMotionOptimizeVisitor final : public VNVisitor {
// CONSTRUCTOR
CodeMotionOptimizeVisitor(AstNode* nodep, const StmtPropertiesAllocator& stmtProperties)
: m_stmtProperties(stmtProperties) {
: m_stmtProperties{stmtProperties} {
// We assert the given node is at the head of the list otherwise we might move a node
// before the given node. This is easy to fix in the above iteration with a check on a
// boundary node we should not move past, if we ever need to do so.