================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits