aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2022-12-12 10:58:06 +0000
committerJay Foad <jay.foad@amd.com>2022-12-14 13:22:26 +0000
commit6443c0ee02c7785bc917fcf508f4cc7ded38487a (patch)
treeee40d59233811cb5b87a53726d87242092c98120 /llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
parent847fa84b3d346313bbad31d4c76b0f70d73827aa (diff)
downloadllvm-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.cpp2
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;