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