diff options
author | Rahul Joshi <rjoshi@nvidia.com> | 2025-07-04 10:42:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-04 10:42:14 -0700 |
commit | b38de6c18ed7669156fc14e0142d2372b747f9f9 (patch) | |
tree | d0a938562c2204d164840e6ce4e476cf950a9a68 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 7b517cf743f112f980cf6a4d6e6190c2a5b3e451 (diff) | |
download | llvm-b38de6c18ed7669156fc14e0142d2372b747f9f9.zip llvm-b38de6c18ed7669156fc14e0142d2372b747f9f9.tar.gz llvm-b38de6c18ed7669156fc14e0142d2372b747f9f9.tar.bz2 |
[NFCI][LLVM] Adopt `ArrayRef::consume_front()` in a few places (#146793)
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 5e1b313..d37a22f 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -2085,8 +2085,8 @@ TypeIndex CodeViewDebug::lowerTypeFunction(const DISubroutineType *Ty) { ArrayRef<TypeIndex> ArgTypeIndices = {}; if (!ReturnAndArgTypeIndices.empty()) { auto ReturnAndArgTypesRef = ArrayRef(ReturnAndArgTypeIndices); - ReturnTypeIndex = ReturnAndArgTypesRef.front(); - ArgTypeIndices = ReturnAndArgTypesRef.drop_front(); + ReturnTypeIndex = ReturnAndArgTypesRef.consume_front(); + ArgTypeIndices = ReturnAndArgTypesRef; } ArgListRecord ArgListRec(TypeRecordKind::ArgList, ArgTypeIndices); |