aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-10-22 21:56:37 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-10-22 21:56:37 +0200
commit04e42f62548d4c0367664188a938b609435718e2 (patch)
tree118c609de70e1d9fa1c3a1911a3d74d815b0f972 /clang/lib/Frontend/CompilerInvocation.cpp
parent17690ee79ad635373438c90d9d27385ed0037faf (diff)
downloadllvm-04e42f62548d4c0367664188a938b609435718e2.zip
llvm-04e42f62548d4c0367664188a938b609435718e2.tar.gz
llvm-04e42f62548d4c0367664188a938b609435718e2.tar.bz2
Revert "[GWP-ASan] Move random-related code in the allocator"
This reverts commit 9903b0586cfb76ef2401c342501e61e1bd3daa0f. Causes build failures (on GCC 10.2) with the following error: In file included from /home/nikic/llvm-project/compiler-rt/lib/scudo/standalone/combined.h:29, from /home/nikic/llvm-project/compiler-rt/lib/scudo/standalone/allocator_config.h:12, from /home/nikic/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_cpp.cpp:14: /home/nikic/llvm-project/compiler-rt/lib/scudo/standalone/../../gwp_asan/guarded_pool_allocator.h: In member function ‘bool gwp_asan::GuardedPoolAllocator::shouldSample()’: /home/nikic/llvm-project/compiler-rt/lib/scudo/standalone/../../gwp_asan/guarded_pool_allocator.h:82:69: error: conversion from ‘uint32_t’ {aka ‘unsigned int’} to ‘unsigned int:31’ may change value [-Werror=conversion] 82 | (getRandomUnsigned32() % (AdjustedSampleRatePlusOne - 1)) + 1; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions