[all-commits] [llvm/llvm-project] 787699: [libc++abi] Add -Wno-unreachable-code when buildin...

Louis Dionne via All-commits all-commits at lists.llvm.org
Fri May 1 12:30:06 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 78769923fe03b6d8dfcd3dad69b6f3eff5a2f813
      https://github.com/llvm/llvm-project/commit/78769923fe03b6d8dfcd3dad69b6f3eff5a2f813
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-05-01 (Fri, 01 May 2020)

  Changed paths:
    M libcxxabi/test/incomplete_type.sh.cpp

  Log Message:
  -----------
  [libc++abi] Add -Wno-unreachable-code when building test for throwing incomplete types

Slightly older Clangs seem to think they are more clever than they really
are, and they think the code can never be executed. The code can actually
be executed in case the exception runtime is mis-implemented, which is
exactly what this test is testing. This commit just disables the spurious
warning.




More information about the All-commits mailing list