[all-commits] [llvm/llvm-project] 9e32d7: [libunwind] Remove static_assert / __has_feature m...

Ryan Prichard via All-commits all-commits at lists.llvm.org
Mon Aug 24 14:08:19 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e32d7b6e7e6615dbc5049a53f8e2ba03ae0292f
      https://github.com/llvm/llvm-project/commit/9e32d7b6e7e6615dbc5049a53f8e2ba03ae0292f
  Author: Ryan Prichard <rprichard at google.com>
  Date:   2020-08-24 (Mon, 24 Aug 2020)

  Changed paths:
    M libunwind/src/config.h

  Log Message:
  -----------
  [libunwind] Remove static_assert / __has_feature macros

The static_assert macro broke on GCC when a scope had two asserts and a
condition that depended on a template parameter. Remove the macro and
rely on the compiler's C++11 static_assert feature.

The __has_feature macro was only used here to determine whether to
define the static_assert macro.

Reviewed By: mstorsjo, #libunwind

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




More information about the All-commits mailing list