[llvm] [StackSafetyAnalysis] Don't call getTruncateOrZeroExtend for pointers of different sizes (PR #79804)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 03:24:01 PST 2024
================
@@ -273,6 +273,17 @@ ConstantRange StackSafetyLocalAnalysis::offsetFrom(Value *Addr, Value *Base) {
return UnknownRange;
auto *PtrTy = PointerType::getUnqual(SE.getContext());
----------------
arsenm wrote:
Based on the context, I'm guessing another quick bandaid would be to replace the hardcoded PtrTy with the alloc address space pointer type
https://github.com/llvm/llvm-project/pull/79804
More information about the llvm-commits
mailing list