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/IR/Value.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/IR/Value.cpp')
-rw-r--r-- | llvm/lib/IR/Value.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp index 568b145..fa22065 100644 --- a/llvm/lib/IR/Value.cpp +++ b/llvm/lib/IR/Value.cpp @@ -907,7 +907,7 @@ uint64_t Value::getPointerDereferenceableBytes(const DataLayout &DL, if (GV->getValueType()->isSized() && !GV->hasExternalWeakLinkage()) { // TODO: Don't outright reject hasExternalWeakLinkage but set the // CanBeNull flag. - DerefBytes = DL.getTypeStoreSize(GV->getValueType()).getFixedSize(); + DerefBytes = DL.getTypeStoreSize(GV->getValueType()).getFixedValue(); CanBeNull = false; CanBeFreed = false; } |