aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2020-12-16 11:24:30 -0800
committerPeter Collingbourne <peter@pcc.me.uk>2020-12-17 10:42:17 -0800
commite22d802e587b8954748e2b2193195a946ba105e8 (patch)
tree1d593401e4c82e767f748faeb3dae27fe8f9fb87 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parenta48172cf1c1527123a7db35a7d0d7fa84f5dc37c (diff)
downloadllvm-e22d802e587b8954748e2b2193195a946ba105e8.zip
llvm-e22d802e587b8954748e2b2193195a946ba105e8.tar.gz
llvm-e22d802e587b8954748e2b2193195a946ba105e8.tar.bz2
scudo: Adjust test to use correct check for primary allocations.
canAllocate() does not take into account the header size so it does not return the right answer in borderline cases. There was already code handling this correctly in isTaggedAllocation() so split it out into a separate function and call it from the test. Furthermore the test was incorrect when MTE is enabled because MTE does not pattern fill primary allocations. Fix it. Differential Revision: https://reviews.llvm.org/D93437
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions