aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TargetParser/Host.cpp
diff options
context:
space:
mode:
authorAlexis Engelke <engelke@in.tum.de>2024-07-30 12:08:40 +0200
committerGitHub <noreply@github.com>2024-07-30 12:08:40 +0200
commitf6a928a532543a5db4ab89fccbede42f8df32f0f (patch)
treef1fdc8ed80c0f15f9b661e35e63f5e386538ba03 /llvm/lib/TargetParser/Host.cpp
parent933b80006af5801f7fe9327d160c04b12bb8d8b8 (diff)
downloadllvm-f6a928a532543a5db4ab89fccbede42f8df32f0f.zip
llvm-f6a928a532543a5db4ab89fccbede42f8df32f0f.tar.gz
llvm-f6a928a532543a5db4ab89fccbede42f8df32f0f.tar.bz2
[Support][NFC] Simplify DomTreeNodeBase::addChild (#101056)
Previously, the method would take the unique_ptr, store the pointer in its Children vector, and then return the unique_ptr. Pass the raw pointer as parameter instead. Also merge createChild and createNode to avoid code duplication. This was added in a72d6ef891707173b when introducing unique_ptr, previously this was a source code size optimization.
Diffstat (limited to 'llvm/lib/TargetParser/Host.cpp')
0 files changed, 0 insertions, 0 deletions