aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/DataLayout.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2023-01-06 15:27:50 +0000
committerGuillaume Chatelet <gchatelet@google.com>2023-01-06 15:27:50 +0000
commit87b6b347fc915e9862cdcf84284ba1c4276a8018 (patch)
tree6f95efc907fc9d9ef1f943b00bb8c425d9be5967 /llvm/lib/IR/DataLayout.cpp
parentdd56e1c92b0e6e6be249f2d2dd40894e0417223f (diff)
downloadllvm-87b6b347fc915e9862cdcf84284ba1c4276a8018.zip
llvm-87b6b347fc915e9862cdcf84284ba1c4276a8018.tar.gz
llvm-87b6b347fc915e9862cdcf84284ba1c4276a8018.tar.bz2
Revert D141134 "[NFC] Only expose getXXXSize functions in TypeSize"
The patch should be discussed further. This reverts commit dd56e1c92b0e6e6be249f2d2dd40894e0417223f.
Diffstat (limited to 'llvm/lib/IR/DataLayout.cpp')
-rw-r--r--llvm/lib/IR/DataLayout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/DataLayout.cpp b/llvm/lib/IR/DataLayout.cpp
index 6fc3f66..fb331ee 100644
--- a/llvm/lib/IR/DataLayout.cpp
+++ b/llvm/lib/IR/DataLayout.cpp
@@ -67,7 +67,7 @@ StructLayout::StructLayout(StructType *ST, const DataLayout &DL) {
getMemberOffsets()[i] = StructSize;
// Consume space for this data item
- StructSize += DL.getTypeAllocSize(Ty).getFixedSize();
+ StructSize += DL.getTypeAllocSize(Ty).getFixedValue();
}
// Add padding to the end of the struct so that it could be put in an array