[llvm] [AArch64][BTI] Mark EH landing pads as jump targets (PR #149680)
    Shashi Shankar via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Jul 23 01:35:16 PDT 2025
    
    
  
shashforge wrote:
> > That's basically correct. I think you only want to skip past the EH_LABEL if you're handling an EHPad, though: in other cases EH_LABEL is likely tied to a subsequent call instruction you don't want to mess with.
> 
> My `MBB.isEHPad()` in the for loop condition should take care of that no ? ie, if not an EH pad, the loop exits with MBBI pointing to MBB.begin()
he guard on MBB.isEHPad() ensures we only advance the iterator when we’re in an EH pad, so for a normal basic block the loop/while immediately terminates and MBBI remains at MBB.begin().
https://github.com/llvm/llvm-project/pull/149680
    
    
More information about the llvm-commits
mailing list