mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 09:01:42 +00:00
2707880f1b
Bug: https://github.com/dart-lang/sdk/issues/39427 Change-Id: I74e0eee623d88005fb2893d03e284a87daa09260 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/146696 Reviewed-by: Alexander Markov <alexmarkov@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
21 lines
697 B
C
21 lines
697 B
C
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
#ifndef RUNTIME_PLATFORM_UNDEFINED_BEHAVIOR_SANITIZER_H_
|
|
#define RUNTIME_PLATFORM_UNDEFINED_BEHAVIOR_SANITIZER_H_
|
|
|
|
#if defined(__has_feature)
|
|
#if __has_feature(undefined_behavior_sanitizer)
|
|
#define USING_UNDEFINED_BEHAVIOR_SANITIZER
|
|
#endif
|
|
#endif
|
|
|
|
#if defined(USING_UNDEFINED_BEHAVIOR_SANITIZER)
|
|
#define NO_SANITIZE_UNDEFINED(check) __attribute__((no_sanitize(check)))
|
|
#else
|
|
#define NO_SANITIZE_UNDEFINED(check)
|
|
#endif
|
|
|
|
#endif // RUNTIME_PLATFORM_UNDEFINED_BEHAVIOR_SANITIZER_H_
|