Skip to content

Commit deac0ac

Browse files
[AMDGPU] Use default member initialization (NFC)
Identified with modernize-use-default-member-init.
1 parent bbc4a71 commit deac0ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Target/AMDGPU/AMDGPUPerfHintAnalysis.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ struct AMDGPUPerfHint {
7474

7575
private:
7676
struct MemAccessInfo {
77-
const Value *V;
78-
const Value *Base;
79-
int64_t Offset;
80-
MemAccessInfo() : V(nullptr), Base(nullptr), Offset(0) {}
77+
const Value *V = nullptr;
78+
const Value *Base = nullptr;
79+
int64_t Offset = 0;
80+
MemAccessInfo() = default;
8181
bool isLargeStride(MemAccessInfo &Reference) const;
8282
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
8383
Printable print() const {

0 commit comments

Comments
 (0)