[AMDGPU][NFC] Harmonize decl&def of R600TargetLowering::OptimizeSwizzle
authorserge-sans-paille <sguelton@redhat.com>
Sat, 9 Jul 2022 07:05:22 +0000 (09:05 +0200)
committerserge-sans-paille <sguelton@redhat.com>
Sat, 9 Jul 2022 07:07:31 +0000 (09:07 +0200)
The freshly baked -Warray-parameter warning discovered an inconsistency in
argument declaration, use the stricter one.

This fixes build issues like https://lab.llvm.org/buildbot#builders/18/builds/5305

llvm/lib/Target/AMDGPU/R600ISelLowering.h

index 1e75a04..9135f77 100644 (file)
@@ -74,8 +74,8 @@ private:
 
   void lowerImplicitParameter(MachineInstr *MI, MachineBasicBlock &BB,
       MachineRegisterInfo & MRI, unsigned dword_offset) const;
-  SDValue OptimizeSwizzle(SDValue BuildVector, SDValue Swz[], SelectionDAG &DAG,
-                          const SDLoc &DL) const;
+  SDValue OptimizeSwizzle(SDValue BuildVector, SDValue Swz[4],
+                          SelectionDAG &DAG, const SDLoc &DL) const;
   SDValue vectorToVerticalVector(SelectionDAG &DAG, SDValue Vector) const;
 
   SDValue lowerFrameIndex(SDValue Op, SelectionDAG &DAG) const;