1 //===-- lib/Common/idioms.cpp ---------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 #include "flang/Common/idioms.h"
14 namespace Fortran::common
{
16 [[noreturn
]] void die(const char *msg
, ...) {
19 std::fputs("\nfatal internal error: ", stderr
);
20 std::vfprintf(stderr
, msg
, ap
);
26 } // namespace Fortran::common