Skip to content

Commit 4c72266

Browse files
committed
Fix call to deprecated API in bd87a24
1 parent bfe4ce3 commit 4c72266

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/TargetLoweringBase.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ bool TargetLoweringBase::shouldUpdatePointerArgAlignment(
961961
// efficiently. If this is not the case for a given target it should override
962962
// this function.
963963
auto PrefSizeBits =
964-
TTI.getRegisterBitWidth(TargetTransformInfo::RGK_Scalar).getFixedSize();
964+
TTI.getRegisterBitWidth(TargetTransformInfo::RGK_Scalar).getFixedValue();
965965
PrefAlign = Align(PrefSizeBits / 8);
966966
// When building with -Oz, we only increase the alignment if the object is
967967
// at least 8 bytes in size to avoid increased stack/global padding.

0 commit comments

Comments
 (0)