[clang] [llvm] [MIPS][ISel] Fix musttail (PR #161860)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 23 11:18:45 PST 2026
================
@@ -1577,15 +1577,28 @@ void CodeGenModule::Release() {
} else if (getTriple().isMIPS()) {
for (auto &I : MustTailCallUndefinedGlobals) {
const FunctionDecl *FD = I.first;
- const FunctionDecl *Definition = FD->getDefinition();
- if (!Definition) {
- getDiags().Report(I.second, diag::err_mips_impossible_musttail) << 1;
+ StringRef MangledName = getMangledName(GlobalDecl(FD));
+ llvm::GlobalValue *Entry = GetGlobalValue(MangledName);
+
+ if (!Entry) {
----------------
efriedma-quic wrote:
If there's no entry, does that imply that we didn't actually emit the call? Is there test coverage for this?
https://github.com/llvm/llvm-project/pull/161860
More information about the llvm-commits
mailing list