Skip to content

Commit e1272ab

Browse files
author
serge-sans-paille
committed
[AMDGPU][NFC] Harmonize decl&def of R600TargetLowering::OptimizeSwizzle
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
1 parent 615f838 commit e1272ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/R600ISelLowering.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ class R600TargetLowering final : public AMDGPUTargetLowering {
7474

7575
void lowerImplicitParameter(MachineInstr *MI, MachineBasicBlock &BB,
7676
MachineRegisterInfo & MRI, unsigned dword_offset) const;
77-
SDValue OptimizeSwizzle(SDValue BuildVector, SDValue Swz[], SelectionDAG &DAG,
78-
const SDLoc &DL) const;
77+
SDValue OptimizeSwizzle(SDValue BuildVector, SDValue Swz[4],
78+
SelectionDAG &DAG, const SDLoc &DL) const;
7979
SDValue vectorToVerticalVector(SelectionDAG &DAG, SDValue Vector) const;
8080

8181
SDValue lowerFrameIndex(SDValue Op, SelectionDAG &DAG) const;

0 commit comments

Comments
 (0)