fix(compiler): Fix initialization order in constructor of MaxMANPPass

This commit is contained in:
Andi Drebes
2022-01-07 10:55:22 +01:00
committed by Quentin Bourgerie
parent 0b73586178
commit d83a462e20

View File

@@ -1061,8 +1061,8 @@ struct MaxMANPPass : public MaxMANPBase<MaxMANPPass> {
}
MaxMANPPass() = delete;
MaxMANPPass(std::function<void(const llvm::APInt &, unsigned)> updateMax)
: maxMANP(llvm::APInt{1, 0, false}), maxEintWidth(0),
updateMax(updateMax){};
: updateMax(updateMax), maxMANP(llvm::APInt{1, 0, false}),
maxEintWidth(0){};
protected:
void processOperation(mlir::Operation *op) {