diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2023-02-11 12:38:04 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2023-02-11 12:38:11 +0000 |
commit | e3b557809604d036af6e00c60f012c2025b59a5e (patch) | |
tree | 8a11ba2269a3b669601e2fd41145b174008f4da8 /llvm/lib/Analysis/StackSafetyAnalysis.cpp | |
parent | 08e8dd7b9db7bb4a9de26d44c1cbfd24e869c014 (diff) |
Diffstat (limited to 'llvm/lib/Analysis/StackSafetyAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/StackSafetyAnalysis.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/StackSafetyAnalysis.cpp b/llvm/lib/Analysis/StackSafetyAnalysis.cpp index 9698af3ca85c..606397727b01 100644 --- a/llvm/lib/Analysis/StackSafetyAnalysis.cpp +++ b/llvm/lib/Analysis/StackSafetyAnalysis.cpp @@ -159,7 +159,7 @@ ConstantRange getStaticAllocaSizeRange(const AllocaInst &AI) { ConstantRange R = ConstantRange::getEmpty(PointerSize); if (TS.isScalable()) return R; - APInt APSize(PointerSize, TS.getFixedSize(), true); + APInt APSize(PointerSize, TS.getFixedValue(), true); if (APSize.isNonPositive()) return R; if (AI.isArrayAllocation()) { @@ -307,7 +307,7 @@ ConstantRange StackSafetyLocalAnalysis::getAccessRange(Value *Addr, Value *Base, TypeSize Size) { if (Size.isScalable()) return UnknownRange; - APInt APSize(PointerSize, Size.getFixedSize(), true); + APInt APSize(PointerSize, Size.getFixedValue(), true); if (APSize.isNegative()) return UnknownRange; return getAccessRange(Addr, Base, @@ -348,7 +348,7 @@ bool StackSafetyLocalAnalysis::isSafeAccess(const Use &U, AllocaInst *AI, if (TS.isScalable()) return false; auto *CalculationTy = IntegerType::getIntNTy(SE.getContext(), PointerSize); - const SCEV *SV = SE.getConstant(CalculationTy, TS.getFixedSize()); + const SCEV *SV = SE.getConstant(CalculationTy, TS.getFixedValue()); return isSafeAccess(U, AI, SV); } |