[llvm] [ArrayRef] Add constructor from iterator_range<U*> (NFC). (PR #137796)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 30 05:20:26 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-win-fast` running on `as-builder-3` while building `llvm` at step 7 "test-build-unified-tree-check-llvm-unit".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/2/builds/22803

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 7 (test-build-unified-tree-check-llvm-unit) failure: test (failure)
...
[66/745] Building RC object unittests\ADT\CMakeFiles\ADTTests.dir\__\__\resources\windows_version_resource.rc.res
[67/745] Building CXX object unittests\ADT\CMakeFiles\ADTTests.dir\TypeSwitchTest.cpp.obj
[68/745] Building CXX object unittests\ADT\CMakeFiles\ADTTests.dir\StringSwitchTest.cpp.obj
[69/745] Building CXX object unittests\ADT\CMakeFiles\ADTTests.dir\StringMapTest.cpp.obj
[70/745] Building CXX object unittests\ADT\CMakeFiles\ADTTests.dir\StringSetTest.cpp.obj
[71/745] Building CXX object unittests\ADT\CMakeFiles\ADTTests.dir\StringTableTest.cpp.obj
[72/745] Building CXX object unittests\ADT\CMakeFiles\ADTTests.dir\TypeTraitsTest.cpp.obj
[73/745] Building CXX object lib\Testing\Annotations\CMakeFiles\LLVMTestingAnnotations.dir\Annotations.cpp.obj
[74/745] Linking CXX static library lib\LLVMTestingAnnotations.lib
[75/745] Building CXX object unittests\ADT\CMakeFiles\ADTTests.dir\ArrayRefTest.cpp.obj
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/ArrayRefTest.cpp.obj 
C:\ninja\ccache.exe C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1438~1.331\bin\Hostx64\x64\cl.exe  /nologo /TP -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\unittests\ADT -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\unittests\ADT -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\include -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\include -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\third-party\unittest\googletest\include -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\third-party\unittest\googlemock\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -wd4251 -wd4275 -w14062 -we4238 /Gw /O2 /Ob2 /DNDEBUG -MD  /EHs-c- /GR- -std:c++17 /showIncludes /Founittests\ADT\CMakeFiles\ADTTests.dir\ArrayRefTest.cpp.obj /Fdunittests\ADT\CMakeFiles\ADTTests.dir\ /FS -c C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\unittests\ADT\ArrayRefTest.cpp
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\unittests\ADT\ArrayRefTest.cpp(295): error C2440: 'initializing': cannot convert from 'llvm::iterator_range<std::_Array_iterator<_Ty,5>>' to 'llvm::ArrayRef<int>'
        with
        [
            _Ty=int
        ]
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\unittests\ADT\ArrayRefTest.cpp(295): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\unittests\ADT\ArrayRefTest.cpp(301): error C2440: 'initializing': cannot convert from 'llvm::iterator_range<std::_Array_iterator<_Ty,5>>' to 'llvm::ArrayRef<const int>'
        with
        [
            _Ty=int
        ]
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\unittests\ADT\ArrayRefTest.cpp(301): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\unittests\ADT\ArrayRefTest.cpp(309): error C2440: 'initializing': cannot convert from 'llvm::iterator_range<std::_Array_iterator<_Ty,5>>' to 'llvm::ArrayRef<const int>'
        with
        [
            _Ty=const int
        ]
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\unittests\ADT\ArrayRefTest.cpp(309): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
[76/745] Building CXX object unittests\ADT\CMakeFiles\ADTTests.dir\EditDistanceTest.cpp.obj
[77/745] Building CXX object unittests\ADT\CMakeFiles\ADTTests.dir\FoldingSet.cpp.obj
[78/745] Building CXX object unittests\MC\CMakeFiles\MCTests.dir\TargetRegistry.cpp.obj
[79/745] Building CXX object lib\Testing\Support\CMakeFiles\LLVMTestingSupport.dir\SupportHelpers.cpp.obj
[80/745] Building CXX object unittests\ADT\CMakeFiles\ADTTests.dir\PackedVectorTest.cpp.obj
[81/745] Building CXX object unittests\MC\CMakeFiles\MCTests.dir\MCDisassemblerTest.cpp.obj
[82/745] Building CXX object unittests\Object\CMakeFiles\ObjectTests.dir\COFFObjectFileTest.cpp.obj
[83/745] Building CXX object unittests\ADT\CMakeFiles\ADTTests.dir\DirectedGraphTest.cpp.obj
[84/745] Building CXX object unittests\ADT\CMakeFiles\ADTTests.dir\ImmutableMapTest.cpp.obj
[85/745] Building CXX object unittests\ADT\CMakeFiles\ADTTests.dir\ConcurrentHashtableTest.cpp.obj
[86/745] Building CXX object unittests\ADT\CMakeFiles\ADTTests.dir\APFixedPointTest.cpp.obj
[87/745] Building CXX object lib\Testing\Support\CMakeFiles\LLVMTestingSupport.dir\Error.cpp.obj
[88/745] Building CXX object unittests\ADT\CMakeFiles\ADTTests.dir\LazyAtomicPointerTest.cpp.obj
[89/745] Building CXX object unittests\ADT\CMakeFiles\ADTTests.dir\TrieRawHashMapTest.cpp.obj
[90/745] Building CXX object unittests\Analysis\CMakeFiles\AnalysisTests.dir\ConstraintSystemTest.cpp.obj
[91/745] Building CXX object unittests\ADT\CMakeFiles\ADTTests.dir\ImmutableListTest.cpp.obj
[92/745] Building CXX object unittests\ADT\CMakeFiles\ADTTests.dir\CombinationGeneratorTest.cpp.obj
[93/745] Building CXX object unittests\ADT\CMakeFiles\ADTTests.dir\ImmutableSetTest.cpp.obj
[94/745] Building CXX object unittests\Object\CMakeFiles\ObjectTests.dir\ArchiveTest.cpp.obj

```

</details>

https://github.com/llvm/llvm-project/pull/137796


More information about the llvm-commits mailing list