[all-commits] [llvm/llvm-project] 7f9ba1: [DirectX] Fix two "not all control paths return a ...

Justin Bogner via All-commits all-commits at lists.llvm.org
Mon Jul 10 15:35:06 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f9ba1994a2366dd9cfd61aca9802697ad25adb1
      https://github.com/llvm/llvm-project/commit/7f9ba1994a2366dd9cfd61aca9802697ad25adb1
  Author: Justin Bogner <mail at justinbogner.com>
  Date:   2023-07-10 (Mon, 10 Jul 2023)

  Changed paths:
    M llvm/lib/Target/DirectX/DXILResource.cpp

  Log Message:
  -----------
  [DirectX] Fix two "not all control paths return a value" warnings

These switch statements are fully covered. Add an llvm_unreachable so
that compilers that don't recognize that don't warn.

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




More information about the All-commits mailing list