================ @@ -382,11 +382,11 @@ class PacRetAnalysis public: std::vector<MCInstReference> - getLastClobberingInsts(const MCInst Ret, BinaryFunction &BF, - const ArrayRef<MCPhysReg> UsedDirtyRegs) const { ---------------- kbeyls wrote:
I was wondering whether `const` has to be removed here. Looking at the implementation of `getStateAt` and `getStateBefore`, it seems that it might be better to add the `const` qualifier to `getStateBefore` at https://github.com/llvm/llvm-project/blob/9768077de65e31daa619eae231f027e052d601c2/bolt/include/bolt/Passes/DataflowAnalysis.h#L295? https://github.com/llvm/llvm-project/pull/131899 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits