From 3f709e42e3be0f28a88ca3e77663a02b52c914f4 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 6 Dec 2025 20:56:45 +0100 Subject: Vendor import of llvm-project main llvmorg-21-init-19288-gface93e724f4, the last commit before the upstream release/21.x branch was created. --- llvm/lib/Target/ARM/ARMBranchTargets.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Target/ARM/ARMBranchTargets.cpp') 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; } -- cgit v1.3