[all-commits] [llvm/llvm-project] f21cf1: [libc++abi][NFCI] Refactor demangling_terminate_ha...

Louis Dionne via All-commits all-commits at lists.llvm.org
Fri May 13 09:23:01 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f21cf11a4c1d4b09f956e50706307fe986f527dc
      https://github.com/llvm/llvm-project/commit/f21cf11a4c1d4b09f956e50706307fe986f527dc
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2022-05-13 (Fri, 13 May 2022)

  Changed paths:
    M libcxxabi/src/cxa_default_handlers.cpp

  Log Message:
  -----------
  [libc++abi][NFCI] Refactor demangling_terminate_handler to reduce nesting

This keeps the same logic, but uses early return to avoid multiple layers
of nested ifs and make the code simpler to follow.

Differential Revision: https://reviews.llvm.org/D125476




More information about the All-commits mailing list