[all-commits] [llvm/llvm-project] 9008d0: Fix -Warray-parameter warning

David Blaikie via All-commits all-commits at lists.llvm.org
Sat Jul 9 10:05:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9008d0a38e42027f4a01430358ccd38d32bc86d5
      https://github.com/llvm/llvm-project/commit/9008d0a38e42027f4a01430358ccd38d32bc86d5
  Author: David Blaikie <dblaikie at gmail.com>
  Date:   2022-07-09 (Sat, 09 Jul 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/R600ISelLowering.cpp

  Log Message:
  -----------
  Fix -Warray-parameter warning

Remove the bound in the definition, since it's not guaranteed/could
provide a false sense of security (I'd be inclined to go further and
change this to a pointer parameter, since that's what it really is - but
figured I'd preserve some of the author's intent here)




More information about the All-commits mailing list