[clang] 7e1696f - [clang][bytecode][NFC] Use a ListSeparator to print backtraces (#177148)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 21 04:54:59 PST 2026
Author: Timm Baeder
Date: 2026-01-21T13:54:55+01:00
New Revision: 7e1696f1e4bd5c2c5fc9fa020d841d41669ae317
URL: https://github.com/llvm/llvm-project/commit/7e1696f1e4bd5c2c5fc9fa020d841d41669ae317
DIFF: https://github.com/llvm/llvm-project/commit/7e1696f1e4bd5c2c5fc9fa020d841d41669ae317.diff
LOG: [clang][bytecode][NFC] Use a ListSeparator to print backtraces (#177148)
Added:
Modified:
clang/lib/AST/ByteCode/InterpFrame.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/ByteCode/InterpFrame.cpp b/clang/lib/AST/ByteCode/InterpFrame.cpp
index 3b883761ad001..5d645feb5579d 100644
--- a/clang/lib/AST/ByteCode/InterpFrame.cpp
+++ b/clang/lib/AST/ByteCode/InterpFrame.cpp
@@ -191,15 +191,15 @@ void InterpFrame::describe(llvm::raw_ostream &OS) const {
Off += Func->hasRVO() ? primSize(PT_Ptr) : 0;
Off += Func->hasThisPointer() ? primSize(PT_Ptr) : 0;
+ llvm::ListSeparator Comma;
for (unsigned I = 0, N = F->getNumParams(); I < N; ++I) {
+ OS << Comma;
QualType Ty = F->getParamDecl(I)->getType();
PrimType PrimTy = S.Ctx.classify(Ty).value_or(PT_Ptr);
TYPE_SWITCH(PrimTy, print(OS, stackRef<T>(Off), S.getASTContext(), Ty));
Off += align(primSize(PrimTy));
- if (I + 1 != N)
- OS << ", ";
}
OS << ")";
}
More information about the cfe-commits
mailing list