diff options
Diffstat (limited to 'llvm/lib/Target/ARM/ARMBranchTargets.cpp')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMBranchTargets.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMBranchTargets.cpp b/llvm/lib/Target/ARM/ARMBranchTargets.cpp index 17d0bdd87512..409482b9679d 100644 --- a/llvm/lib/Target/ARM/ARMBranchTargets.cpp +++ b/llvm/lib/Target/ARM/ARMBranchTargets.cpp @@ -77,7 +77,8 @@ bool ARMBranchTargets::runOnMachineFunction(MachineFunction &MF) { // modes. These modes do not support PACBTI. As a result, BTI instructions // are not added in the destination blocks. - if (IsFirstBB || MBB.hasAddressTaken() || MBB.isEHPad()) { + if (IsFirstBB || MBB.isMachineBlockAddressTaken() || + MBB.isIRBlockAddressTaken() || MBB.isEHPad()) { addBTI(TII, MBB, IsFirstBB); MadeChange = true; } |
