[clang] Flags for large CFG bail out (PR #170444)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 3 05:46:09 PST 2025
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 36275 tests passed
* 507 tests skipped
All tests passed but another part of the build **failed**. Click on a failure below to see the details.
<details>
<summary>tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/Analysis/LifetimeSafetyTest.cpp.o</summary>
```
FAILED: tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/Analysis/LifetimeSafetyTest.cpp.o
sccache /opt/llvm/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/unittests -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/unittests -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/unittests/Tooling -I/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googlemock/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/Analysis/LifetimeSafetyTest.cpp.o -MF tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/Analysis/LifetimeSafetyTest.cpp.o.d -o tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/Analysis/LifetimeSafetyTest.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/unittests/Analysis/LifetimeSafetyTest.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/unittests/Analysis/LifetimeSafetyTest.cpp:9:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Analysis/Analyses/LifetimeSafety/LifetimeSafety.h:23:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Analysis/Analyses/LifetimeSafety/Facts.h:17:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Analysis/Analyses/LifetimeSafety/Loans.h:17:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/AST/Decl.h:16:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/AST/APNumericStorage.h:12:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/APFloat.h:19:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:13:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:37:
In file included from /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/memory:78:
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:1070:34: error: no matching constructor for initialization of 'clang::lifetimes::internal::LifetimeSafetyAnalysis'
1070 | { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/unittests/Analysis/LifetimeSafetyTest.cpp:65:21: note: in instantiation of function template specialization 'std::make_unique<clang::lifetimes::internal::LifetimeSafetyAnalysis, clang::AnalysisDeclContext &, std::nullptr_t>' requested here
65 | Analysis = std::make_unique<LifetimeSafetyAnalysis>(*AnalysisCtx, nullptr);
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Analysis/Analyses/LifetimeSafety/LifetimeSafety.h:68:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided
68 | class LifetimeSafetyAnalysis {
| ^~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Analysis/Analyses/LifetimeSafety/LifetimeSafety.h:70:3: note: candidate constructor not viable: requires 3 arguments, but 2 were provided
70 | LifetimeSafetyAnalysis(AnalysisDeclContext &AC,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
71 | LifetimeSafetyReporter *Reporter,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
72 | uint32_t BlockFactNumThreshold);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/170444
More information about the cfe-commits
mailing list