Skip to content

Commit 9535e01

Browse files
committed
[AMDGPU] Fix -Wc++98-compat-extra-semi after c1511a6
1 parent 3d7e6db commit 9535e01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4503,11 +4503,11 @@ bool AMDGPUInstructionSelector::isDSOffset2Legal(Register Base, int64_t Offset0,
45034503
}
45044504

45054505
// Return whether the operation has NoUnsignedWrap property.
4506-
bool isNoUnsignedWrap(MachineInstr *Addr) {
4506+
static bool isNoUnsignedWrap(MachineInstr *Addr) {
45074507
return Addr->getOpcode() == TargetOpcode::G_OR ||
45084508
(Addr->getOpcode() == TargetOpcode::G_PTR_ADD &&
45094509
Addr->getFlag(MachineInstr::NoUWrap));
4510-
};
4510+
}
45114511

45124512
// Check that the base address of flat scratch load/store in the form of `base +
45134513
// offset` is legal to be put in SGPR/VGPR (i.e. unsigned per hardware

0 commit comments

Comments
 (0)