diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2023-01-06 15:27:50 +0000 |
---|---|---|
committer | Guillaume Chatelet <gchatelet@google.com> | 2023-01-06 15:27:50 +0000 |
commit | 87b6b347fc915e9862cdcf84284ba1c4276a8018 (patch) | |
tree | 6f95efc907fc9d9ef1f943b00bb8c425d9be5967 /llvm/lib/CodeGen/StackProtector.cpp | |
parent | dd56e1c92b0e6e6be249f2d2dd40894e0417223f (diff) | |
download | llvm-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/CodeGen/StackProtector.cpp')
-rw-r--r-- | llvm/lib/CodeGen/StackProtector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StackProtector.cpp b/llvm/lib/CodeGen/StackProtector.cpp index 0b16f4f..f76877f 100644 --- a/llvm/lib/CodeGen/StackProtector.cpp +++ b/llvm/lib/CodeGen/StackProtector.cpp @@ -218,7 +218,7 @@ bool StackProtector::HasAddressTaken(const Instruction *AI, // We can't subtract a fixed size from a scalable one, so in that case // assume the scalable value is of minimum size. TypeSize NewAllocSize = - TypeSize::Fixed(AllocSize.getKnownMinSize()) - OffsetSize; + TypeSize::Fixed(AllocSize.getKnownMinValue()) - OffsetSize; if (HasAddressTaken(I, NewAllocSize)) return true; break; |