aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMaurice Heumann <MauriceHeumann@gmail.com>2024-09-30 20:14:38 +0200
committerGitHub <noreply@github.com>2024-09-30 11:14:38 -0700
commit607c525110ed174fa2963fc2b621109f1a95111b (patch)
tree79040e666d33af82dbdeb15eaf9b34ffb887dcf2 /flang/lib/Frontend/CompilerInvocation.cpp
parentbbdca53bad670b69e299b1094e2d654a3a76e0dd (diff)
downloadllvm-607c525110ed174fa2963fc2b621109f1a95111b.zip
llvm-607c525110ed174fa2963fc2b621109f1a95111b.tar.gz
llvm-607c525110ed174fa2963fc2b621109f1a95111b.tar.bz2
[ARM64] [Windows] Mark block address as taken when expanding catchrets (#109252)
This fixes issue #109250 The issue happens during the `MachineBlockPlacement` pass. The block, whose address was previously not taken, is deemed redundant by the pass and subsequently replaced using `MachineBasicBlock::ReplaceUsesOfBlockWith` in `BranchFolding`. ReplaceUsesOfBlockWith only replaces uses in the terminator. However, `expandPostRAPseudo` introduces new block uses when expanding catchrets. These uses do not get replaced, which results in undefined label errors later on. Marking the block addresss as taken prevents the replacement of the block, without also replacing non-terminator uses.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions