Skip to content

Commit e725e12

Browse files
committed
Fix handling of dontcall attributes for arches that lower calls via fastSelectInstruction
1 parent 2b37471 commit e725e12

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

llvm/lib/Target/ARM/ARMFastISel.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2504,6 +2504,7 @@ bool ARMFastISel::SelectCall(const Instruction *I,
25042504
// Set all unused physreg defs as dead.
25052505
static_cast<MachineInstr *>(MIB)->setPhysRegsDeadExcept(UsedRegs, TRI);
25062506

2507+
diagnoseDontCall(*CI);
25072508
return true;
25082509
}
25092510

llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,8 @@ bool WebAssemblyFastISel::selectCall(const Instruction *I) {
912912

913913
if (!IsVoid)
914914
updateValueMap(Call, ResultReg);
915+
916+
diagnoseDontCall(*Call);
915917
return true;
916918
}
917919

0 commit comments

Comments
 (0)