diff options
author | Dan Liew <dan@su-root.co.uk> | 2018-12-13 19:55:36 +0000 |
---|---|---|
committer | Dan Liew <dan@su-root.co.uk> | 2018-12-13 19:55:36 +0000 |
commit | c2e2dd43f018b5c987572e03465472ccf146359c (patch) | |
tree | e60bd8ed10b74f688bd302627801aaaa81e9f835 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 5a7056fa039d3fd5e241d7db8e44c063214ec4ca (diff) | |
download | llvm-c2e2dd43f018b5c987572e03465472ccf146359c.zip llvm-c2e2dd43f018b5c987572e03465472ccf146359c.tar.gz llvm-c2e2dd43f018b5c987572e03465472ccf146359c.tar.bz2 |
Implement a small subset of the C++ `type_traits` header inside sanitizer_common so we can avoid depending on system C++ headers.
Summary:
In particular we implement the `is_same<T,U>` templated type. This is
useful for doing compile-time comparison of types in `static_assert`s.
The plan is to use this in another patch (
https://reviews.llvm.org/D54904 ).
Reviewers: kcc, dvyukov, vitalybuka, cryptoad, eugenis, kubamracek, george.karpenkov
Subscribers: mgorny, #sanitizers, llvm-commits
Differential Revision: https://reviews.llvm.org/D54951
llvm-svn: 349077
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions