diff options
author | Jay Foad <jay.foad@amd.com> | 2022-12-12 10:58:06 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@amd.com> | 2022-12-14 13:22:26 +0000 |
commit | 6443c0ee02c7785bc917fcf508f4cc7ded38487a (patch) | |
tree | ee40d59233811cb5b87a53726d87242092c98120 /llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp | |
parent | 847fa84b3d346313bbad31d4c76b0f70d73827aa (diff) | |
download | llvm-6443c0ee02c7785bc917fcf508f4cc7ded38487a.zip llvm-6443c0ee02c7785bc917fcf508f4cc7ded38487a.tar.gz llvm-6443c0ee02c7785bc917fcf508f4cc7ded38487a.tar.bz2 |
[AMDGPU] Stop using make_pair and make_tuple. NFC.
C++17 allows us to call constructors pair and tuple instead of helper
functions make_pair and make_tuple.
Differential Revision: https://reviews.llvm.org/D139828
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp')
-rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp b/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp index 3414225..9f2e2bf 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp @@ -51,7 +51,7 @@ AMDGPUMachineFunction::AMDGPUMachineFunction(const MachineFunction &MF) unsigned AMDGPUMachineFunction::allocateLDSGlobal(const DataLayout &DL, const GlobalVariable &GV, Align Trailing) { - auto Entry = LocalMemoryObjects.insert(std::make_pair(&GV, 0)); + auto Entry = LocalMemoryObjects.insert(std::pair(&GV, 0)); if (!Entry.second) return Entry.first->second; |