summaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorLU-JOHN <John.Lu@amd.com>2025-08-01 08:38:29 +0000
committerAlexis Engelke <engelke@in.tum.de>2025-08-01 08:38:29 +0000
commite993e7b900cd00be42430c3dee0e5fa61aba5080 (patch)
treef7b4e1c57ea940ed2102c7fbacc79985ed0b5a35 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parent36819eaed124d6a7339a151b6172cd543fe3579a (diff)
[𝘀𝗽𝗿] changes to main this commit is based onusers/aengelke/spr/main.ir-make-branchinst-operand-order-consistent
Created using spr 1.3.5-bogner [skip ci]
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 5e1b313b4d2f..d37a22f321ce 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);