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)15void die(const char *Message) { 16 __sanitizer_log_write(Message, strlen(Message)); 17 __builtin_trap(); 18 } 19 } // namespace gwp_asan 20