[all-commits] [llvm/llvm-project] 01a2d2: [SPIRV] Fix build warnings

Jay Foad via All-commits all-commits at lists.llvm.org
Thu Jan 26 02:50:40 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 01a2d28e8b95ade23302895efe237c3c22946097
      https://github.com/llvm/llvm-project/commit/01a2d28e8b95ade23302895efe237c3c22946097
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2023-01-26 (Thu, 26 Jan 2023)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
    M llvm/lib/Target/SPIRV/SPIRVUtils.cpp

  Log Message:
  -----------
  [SPIRV] Fix build warnings

Fix these build warnings:

SPIRVBuiltins.cpp:1590:30: warning: 'getPrefTypeAlignment' is deprecated: use getPrefTypeAlign instead [-Wdeprecated-declarations]
SPIRVUtils.cpp:209:3: warning: default label in switch which covers all enumeration values [-Wcovered-switch-default]

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




More information about the All-commits mailing list