xref: /freebsd/contrib/llvm-project/compiler-rt/lib/gwp_asan/platform_specific/utilities_fuchsia.cpp (revision e8d8bef961a50d4dc22501cde4fb9fb0be1b2532)
1 //===-- utilities_fuchsia.cpp -----------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #include "gwp_asan/utilities.h"
10 
11 #include <string.h>
12 #include <zircon/sanitizer.h>
13 
14 namespace gwp_asan {
die(const char * Message)15 void die(const char *Message) {
16   __sanitizer_log_write(Message, strlen(Message));
17   __builtin_trap();
18 }
19 } // namespace gwp_asan
20