aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorRahul Joshi <rjoshi@nvidia.com>2025-07-04 10:42:14 -0700
committerGitHub <noreply@github.com>2025-07-04 10:42:14 -0700
commitb38de6c18ed7669156fc14e0142d2372b747f9f9 (patch)
treed0a938562c2204d164840e6ce4e476cf950a9a68 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parent7b517cf743f112f980cf6a4d6e6190c2a5b3e451 (diff)
downloadllvm-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.cpp4
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);