[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 02:36:56 PST 2024


================
@@ -273,6 +273,17 @@ ConstantRange StackSafetyLocalAnalysis::offsetFrom(Value *Addr, Value *Base) {
     return UnknownRange;
 
   auto *PtrTy = PointerType::getUnqual(SE.getContext());
----------------
arsenm wrote:

Didn't follow the context, but PointerType::getUnqual should never be used. Can this just use Addr->getType()?

https://github.com/llvm/llvm-project/pull/79804


More information about the llvm-commits mailing list