[PATCH] D67847: [Support] make report_fatal_error `abort` instead of `exit`

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 30 22:37:34 PDT 2019


MaskRay accepted this revision.
MaskRay added a comment.
This revision is now accepted and ready to land.

This also fixes a POSIX-compliance problem. report_fatal_error() may be called by a destructor, registered by atexit(). POSIX says "If exit() is called more than once, the behavior is undefined."


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67847/new/

https://reviews.llvm.org/D67847





More information about the llvm-commits mailing list