aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Frontend/CompilerInstanceTest.cpp
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2024-09-25 14:21:48 +0000
committerDavid Spickett <david.spickett@linaro.org>2024-09-25 14:31:57 +0000
commit26e0b5077236064d9ab0548e049dffce4d476c06 (patch)
tree9adae86b1dc7ecf04aa28de3e5c4a251846347ee /clang/unittests/Frontend/CompilerInstanceTest.cpp
parentd2885743630fcb35fdf64d21bd4bec62a5cb4d37 (diff)
downloadllvm-26e0b5077236064d9ab0548e049dffce4d476c06.zip
llvm-26e0b5077236064d9ab0548e049dffce4d476c06.tar.gz
llvm-26e0b5077236064d9ab0548e049dffce4d476c06.tar.bz2
[lldb][lldb-dap] Fix compilation error on 32 bit platforms
https://github.com/llvm/llvm-project/pull/109485 tried to std::min between size_t and uint64_t. size_t on 32 bit is 32 bits. https://lab.llvm.org/buildbot/#/builders/18/builds/4430/steps/4/logs/stdio Explicitly select the size_t template to fix this. This will truncate one of the arguments but that's the count_requested. If you're debugging from a 32 bit host and you asked it to read > 32 bit range of memory from a 64 bit target, you weren't going to have any success anyway. The final result needs to be size_t to resize the vector with.
Diffstat (limited to 'clang/unittests/Frontend/CompilerInstanceTest.cpp')
0 files changed, 0 insertions, 0 deletions