[llvm] [GlobalISel] Fix null deref when target has no stack guard variable (PR #224252)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 18 02:03:14 PDT 2026
================
@@ -4907,6 +4907,10 @@ bool IRTranslatorImpl::emitSPDescriptorParent(StackProtectorDescriptor &SPD,
} else {
// TODO: test using android subtarget when we support @llvm.thread.pointer.
const Value *IRGuard = TLI->getSDagStackGuard(M, *Libcalls);
+ if (!IRGuard) {
+ LLVM_DEBUG(dbgs() << "Failed to lower call to stack protector check\n");
----------------
tfzee wrote:
Ok updated with reportFatalUsageError. I haven't used it before so not sure if that is the 'right' way to report an error here.
https://github.com/llvm/llvm-project/pull/224252
More information about the llvm-commits
mailing list