diff options
author | Maurice Heumann <MauriceHeumann@gmail.com> | 2024-09-30 20:14:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-30 11:14:38 -0700 |
commit | 607c525110ed174fa2963fc2b621109f1a95111b (patch) | |
tree | 79040e666d33af82dbdeb15eaf9b34ffb887dcf2 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | bbdca53bad670b69e299b1094e2d654a3a76e0dd (diff) | |
download | llvm-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