summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorDan Liew <dan@su-root.co.uk>2019-01-11 17:59:52 +0000
committerDan Liew <dan@su-root.co.uk>2019-01-11 17:59:52 +0000
commit222cbb9e89dd8ddeacfe2b1ba0931ee6198d0fc8 (patch)
treee9fc98e935ad652e1c43c9adc99a10c131bebaf2 /cmake
parentbd3acec0513387fe9cefb5b21d9772873017538a (diff)
downloadcompiler-rt-222cbb9e89dd8ddeacfe2b1ba0931ee6198d0fc8.tar.gz
Provide storage for `true_type::value` and `false_type::value`.
Summary: This fixes linker errors that occurs when the `sanitizer_type_traits_test.cc` is built without optimizations. The error occurs because the test tries to take a reference. A possible workaround is to give the GTest macros take boolean rvalues by doing something like: ``` ASSERT_TRUE(bool(is_same<uptr, uptr>::value)); ``` However this only hides the problem. Unfortunately Using `constexpr` won't fix the problem unless we are using C++17. Reviewers: vitalybuka, kubamracek, george.karpenkov, yln Subscribers: mgorny, #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D56035 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350940 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
0 files changed, 0 insertions, 0 deletions