Author: killcerr Date: 2026-01-12T09:00:08+02:00 New Revision: 3575501b5a7f92cb9285e6e9232d04df47b56495
URL: https://github.com/llvm/llvm-project/commit/3575501b5a7f92cb9285e6e9232d04df47b56495 DIFF: https://github.com/llvm/llvm-project/commit/3575501b5a7f92cb9285e6e9232d04df47b56495.diff LOG: [clang] fix warning (#174587) ```shell input_line_0:10:30: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare] ``` Added: Modified: clang/lib/Interpreter/Interpreter.cpp Removed: ################################################################################ diff --git a/clang/lib/Interpreter/Interpreter.cpp b/clang/lib/Interpreter/Interpreter.cpp index f69c57fe48001..dc9255b828ca5 100644 --- a/clang/lib/Interpreter/Interpreter.cpp +++ b/clang/lib/Interpreter/Interpreter.cpp @@ -445,7 +445,7 @@ const char *const Runtimes = R"( void* operator new(__SIZE_TYPE__, void* __p, __clang_Interpreter_NewTag) noexcept; template <class T, class = T (*)() /*disable for arrays*/> void __clang_Interpreter_SetValueCopyArr(const T* Src, void* Placement, unsigned long Size) { - for (auto Idx = 0; Idx < Size; ++Idx) + for (unsigned long Idx = 0; Idx < Size; ++Idx) new ((void*)(((T*)Placement) + Idx), __ci_newtag) T(Src[Idx]); } template <class T, unsigned long N> _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
