[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 25 05:17:25 PDT 2026
================
@@ -4907,10 +4907,9 @@ 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");
- return false;
- }
+ if (!IRGuard)
+ reportFatalUsageError("unable to lower stackguard for this backend");
----------------
tfzee wrote:
I didn't see any actual way to construct a poison register but from the lowering of the DAG poison and the code higher up I assume you mean the buildUndef + getReg.
https://github.com/llvm/llvm-project/pull/224252
More information about the llvm-commits
mailing list