File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
llvm/lib/CodeGen/GlobalISel Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -3058,7 +3058,11 @@ bool IRTranslator::translateCallBr(const User &U,
3058
3058
for (BasicBlock *Dest : I.getIndirectDests ()) {
3059
3059
MachineBasicBlock *Target = &getMBB (*Dest);
3060
3060
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
+
3062
3066
Target->setLabelMustBeEmitted ();
3063
3067
// Don't add duplicate machine successors.
3064
3068
if (Dests.insert (Dest).second )
You can’t perform that action at this time.
0 commit comments