Skip to content

Commit fdb669b

Browse files
committed
[AMDGPU] clang-format: pass Triple by value and std::move it. NFC.
1 parent 7a72856 commit fdb669b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ void GCNSubtarget::checkSubtargetFeatures(const Function &F) const {
183183
}
184184
}
185185

186-
AMDGPUSubtarget::AMDGPUSubtarget(const Triple &TT) : TargetTriple(TT) {}
186+
AMDGPUSubtarget::AMDGPUSubtarget(Triple TT) : TargetTriple(std::move(TT)) {}
187187

188188
bool AMDGPUSubtarget::useRealTrue16Insts() const {
189189
return hasTrue16BitInsts() && EnableRealTrue16Insts;

llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class AMDGPUSubtarget {
7171
char WavefrontSizeLog2 = 0;
7272

7373
public:
74-
AMDGPUSubtarget(const Triple &TT);
74+
AMDGPUSubtarget(Triple TT);
7575

7676
static const AMDGPUSubtarget &get(const MachineFunction &MF);
7777
static const AMDGPUSubtarget &get(const TargetMachine &TM,

0 commit comments

Comments
 (0)