[llvm] 4c72266 - Fix call to deprecated API in bd87a2449da0c82e63cebdf9c131c54a5472e3a7
Alex Richardson via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 9 02:26:57 PST 2023
Author: Alex Richardson
Date: 2023-02-09T10:26:33Z
New Revision: 4c72266830ffa332ebb7cf1d3bbd6c56d001fa0f
URL: https://github.com/llvm/llvm-project/commit/4c72266830ffa332ebb7cf1d3bbd6c56d001fa0f
DIFF: https://github.com/llvm/llvm-project/commit/4c72266830ffa332ebb7cf1d3bbd6c56d001fa0f.diff
LOG: Fix call to deprecated API in bd87a2449da0c82e63cebdf9c131c54a5472e3a7
Added:
Modified:
llvm/lib/CodeGen/TargetLoweringBase.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index 397326792a52..d24d89d6c058 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -961,7 +961,7 @@ bool TargetLoweringBase::shouldUpdatePointerArgAlignment(
// efficiently. If this is not the case for a given target it should override
// this function.
auto PrefSizeBits =
- TTI.getRegisterBitWidth(TargetTransformInfo::RGK_Scalar).getFixedSize();
+ TTI.getRegisterBitWidth(TargetTransformInfo::RGK_Scalar).getFixedValue();
PrefAlign = Align(PrefSizeBits / 8);
// When building with -Oz, we only increase the alignment if the object is
// at least 8 bytes in size to avoid increased stack/global padding.
More information about the llvm-commits
mailing list