aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sanitizer_common/sanitizer_type_traits.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sanitizer_common/sanitizer_type_traits.cpp')
-rw-r--r--lib/sanitizer_common/sanitizer_type_traits.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_type_traits.cpp b/lib/sanitizer_common/sanitizer_type_traits.cpp
new file mode 100644
index 000000000000..5ee37d7376f9
--- /dev/null
+++ b/lib/sanitizer_common/sanitizer_type_traits.cpp
@@ -0,0 +1,20 @@
+//===-- sanitizer_type_traits.cpp -------------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// Implements a subset of C++ type traits. This is so we can avoid depending
+// on system C++ headers.
+//
+//===----------------------------------------------------------------------===//
+#include "sanitizer_type_traits.h"
+
+namespace __sanitizer {
+
+const bool true_type::value;
+const bool false_type::value;
+
+} // namespace __sanitizer