aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Threading.cpp
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2016-06-04 04:02:18 +0000
committerPetr Hosek <phosek@chromium.org>2016-06-04 04:02:18 +0000
commit17f7a24807076371ecb05a993acc8922cd109243 (patch)
tree9a9c051c1a96f8133e5592b82523fd9e2be0cd8b /llvm/lib/Support/Threading.cpp
parent99497fdebddbb9ee38f6b7dcaffa8a1e7167955e (diff)
downloadllvm-17f7a24807076371ecb05a993acc8922cd109243.zip
llvm-17f7a24807076371ecb05a993acc8922cd109243.tar.gz
llvm-17f7a24807076371ecb05a993acc8922cd109243.tar.bz2
[MC] Check the upper bound in truncate assertion
The truncateToSize function already has assertion to check the lower boundary for the number bytes, but it does not check the upper boundary which could still lead to usage errors. Differential Revision: http://reviews.llvm.org/D20755 llvm-svn: 271773
Diffstat (limited to 'llvm/lib/Support/Threading.cpp')
0 files changed, 0 insertions, 0 deletions