diff --git a/flang/include/flang/Optimizer/Builder/FIRBuilder.h b/flang/include/flang/Optimizer/Builder/FIRBuilder.h --- a/flang/include/flang/Optimizer/Builder/FIRBuilder.h +++ b/flang/include/flang/Optimizer/Builder/FIRBuilder.h @@ -50,8 +50,8 @@ // The listener self-reference has to be updated in case of copy-construction. FirOpBuilder(const FirOpBuilder &other) - : OpBuilder{other}, kindMap{other.kindMap}, fastMathFlags{ - other.fastMathFlags} { + : OpBuilder(other), OpBuilder::Listener(), kindMap{other.kindMap}, + fastMathFlags{other.fastMathFlags} { setListener(this); }