diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2023-01-11 16:48:35 +0000 |
---|---|---|
committer | Guillaume Chatelet <gchatelet@google.com> | 2023-01-11 16:49:38 +0000 |
commit | 8fd5558b29761aec91143129cb23c90581a944e9 (patch) | |
tree | 1c6ba9d85929cfe1713de88c4bef61327c6c158e /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 56ff9168611b98c372af03f7722ef23c3e6a93ed (diff) | |
download | llvm-8fd5558b29761aec91143129cb23c90581a944e9.zip llvm-8fd5558b29761aec91143129cb23c90581a944e9.tar.gz llvm-8fd5558b29761aec91143129cb23c90581a944e9.tar.bz2 |
[NFC] Use TypeSize::geFixedValue() instead of TypeSize::getFixedSize()
This change is one of a series to implement the discussion from
https://reviews.llvm.org/D141134.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index e43a3fb..cd9ee04 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -1496,7 +1496,7 @@ static bool valueCoversEntireFragment(Type *ValTy, DbgVariableIntrinsic *DII) { if (std::optional<uint64_t> FragmentSize = DII->getFragmentSizeInBits()) { assert(!ValueSize.isScalable() && "Fragments don't work on scalable types."); - return ValueSize.getFixedSize() >= *FragmentSize; + return ValueSize.getFixedValue() >= *FragmentSize; } // We can't always calculate the size of the DI variable (e.g. if it is a // VLA). Try to use the size of the alloca that the dbg intrinsic describes |