[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: detect non-protected indirect calls (PR #131899)
Kristof Beyls via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Mar 25 06:49:03 PDT 2025
================
@@ -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
More information about the llvm-branch-commits
mailing list