diff options
author | serge-sans-paille <sguelton@mozilla.com> | 2023-01-06 16:56:23 +0100 |
---|---|---|
committer | serge-sans-paille <sguelton@mozilla.com> | 2023-01-09 12:15:24 +0100 |
commit | a3c248db87ebe88084386950846678c9a52dd7c0 (patch) | |
tree | 376f60d99882a89ba69a7d1c450d54d2ab4cc501 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 5b24d421064743fcb67be82cf1578cc3aa502faf (diff) | |
download | llvm-a3c248db87ebe88084386950846678c9a52dd7c0.zip llvm-a3c248db87ebe88084386950846678c9a52dd7c0.tar.gz llvm-a3c248db87ebe88084386950846678c9a52dd7c0.tar.bz2 |
Move from llvm::makeArrayRef to ArrayRef deduction guides - clang/ part
This is a follow-up to https://reviews.llvm.org/D140896, split into
several parts as it touches a lot of files.
Differential Revision: https://reviews.llvm.org/D141139
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index ed79c81..f15c6bb 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -848,8 +848,8 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy, auto FuncGroups = CGM.getCodeGenOpts().XRayTotalFunctionGroups; if (FuncGroups > 1) { - auto FuncName = llvm::makeArrayRef<uint8_t>( - CurFn->getName().bytes_begin(), CurFn->getName().bytes_end()); + auto FuncName = llvm::ArrayRef<uint8_t>(CurFn->getName().bytes_begin(), + CurFn->getName().bytes_end()); auto Group = crc32(FuncName) % FuncGroups; if (Group != CGM.getCodeGenOpts().XRaySelectedFunctionGroup && !AlwaysXRayAttr) |