diff options
author | Clemens Wasser <clemens.wasser@gmail.com> | 2021-12-07 10:27:59 -0800 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2021-12-07 10:38:13 -0800 |
commit | 33e3554ea33d98f476f5d5a6fb85472d5dccfe18 (patch) | |
tree | da8b3e0dc2a0710d5d456e4fbf0a45bcfc36b289 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | d298c324075e8059687314c46d996a6b580d2257 (diff) | |
download | llvm-33e3554ea33d98f476f5d5a6fb85472d5dccfe18.zip llvm-33e3554ea33d98f476f5d5a6fb85472d5dccfe18.tar.gz llvm-33e3554ea33d98f476f5d5a6fb85472d5dccfe18.tar.bz2 |
Change __lsan::kMaxAllowedMallocSize literal types to unsigned long long
It is required for the [Leak Sanitizer port to Windows](https://reviews.llvm.org/D115103).
The currently used `unsigned long` type is 64 bits wide on UNIX like systems but only 32 bits wide on Windows.
Because of that, the literal `8UL << 30` causes an integer overflow on Windows.
By changing the type of the literals to `unsigned long long`, we have consistent behavior and no overflows on all Platforms.
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D115186
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions