[all-commits] [llvm/llvm-project] 7da087: [clang][dataflow][NFC] Fix reachability warning.

Yitzhak Mandelbaum via All-commits all-commits at lists.llvm.org
Fri Oct 14 12:35:37 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7da087974f9491855eea0087c657851a84c67b75
      https://github.com/llvm/llvm-project/commit/7da087974f9491855eea0087c657851a84c67b75
  Author: Yitzhak Mandelbaum <yitzhakm at google.com>
  Date:   2022-10-14 (Fri, 14 Oct 2022)

  Changed paths:
    M clang/lib/Analysis/FlowSensitive/Transfer.cpp

  Log Message:
  -----------
  [clang][dataflow][NFC] Fix reachability warning.

Some compilers can't determine that all cases of the switch return (or are
unreachable) and warn about control reaching end of non-void
function. Explicitly mark with `llvm_unreachable`.

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




More information about the All-commits mailing list