[all-commits] [llvm/llvm-project] 2248cd: [Arm] Fix UAF in ARMConstantIslandPass (#146232)
Qinkun Bao via All-commits
all-commits at lists.llvm.org
Sat Jun 28 21:20:50 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2248cdfa74ecc09bca2a142029cc4c96e5d00cda
https://github.com/llvm/llvm-project/commit/2248cdfa74ecc09bca2a142029cc4c96e5d00cda
Author: Qinkun Bao <qinkun at google.com>
Date: 2025-06-29 (Sun, 29 Jun 2025)
Changed paths:
M llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
Log Message:
-----------
[Arm] Fix UAF in ARMConstantIslandPass (#146232)
https://github.com/llvm/llvm-project/pull/146198 changes
```
for (unsigned i = 0, e = ImmBranches.size(); i != e; ++i)
BRChange |= fixupImmediateBr(ImmBranches[i]);
```
to
```
for (ImmBranch &Br : ImmBranches)
BRChange |= fixupImmediateBr(Br);
```
Unfortunately, they are not NFC and cause the buildbot error. e.g.,
https://lab.llvm.org/buildbot/#/builders/24/builds/9943
https://lab.llvm.org/buildbot/#/builders/169/builds/12570
Use make_early_inc_range to fix the issue
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list