forked from OSchip/llvm-project
20 lines
604 B
C++
20 lines
604 B
C++
//===-- utilities_fuchsia.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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "gwp_asan/utilities.h"
|
|
|
|
#include <string.h>
|
|
#include <zircon/sanitizer.h>
|
|
|
|
namespace gwp_asan {
|
|
void die(const char *Message) {
|
|
__sanitizer_log_write(Message, strlen(Message));
|
|
__builtin_trap();
|
|
}
|
|
} // namespace gwp_asan
|