Skip to content

Commit 2610e62

Browse files
committed
reflect llvm#141562 also in IRTranslator.cpp
1 parent 034fc31 commit 2610e62

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3058,7 +3058,11 @@ bool IRTranslator::translateCallBr(const User &U,
30583058
for (BasicBlock *Dest : I.getIndirectDests()) {
30593059
MachineBasicBlock *Target = &getMBB(*Dest);
30603060
Target->setIsInlineAsmBrIndirectTarget();
3061-
Target->setMachineBlockAddressTaken();
3061+
// If we introduce a type of asm goto statement that is permitted to use
3062+
// an indirect call instruction to jump to its labels, then we should add
3063+
// a call to Target->setMachineBlockAddressTaken() here, to mark the
3064+
// target block as requiring a BTI.
3065+
30623066
Target->setLabelMustBeEmitted();
30633067
// Don't add duplicate machine successors.
30643068
if (Dests.insert(Dest).second)

0 commit comments

Comments
 (0)