[llvm] [Debugify] Add finer control over origin stacktrace collection (PR #206128)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 26 09:56:22 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

The build failed before running any tests. Click on a failure below to see the details.

<details>
<summary>[code=1] lib/IR/CMakeFiles/LLVMCore.dir/DebugLoc.cpp.obj</summary>

```
FAILED: [code=1] lib/IR/CMakeFiles/LLVMCore.dir/DebugLoc.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -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:\_work\llvm-project\llvm-project\build\lib\IR -IC:\_work\llvm-project\llvm-project\llvm\lib\IR -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -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 /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Folib\IR\CMakeFiles\LLVMCore.dir\DebugLoc.cpp.obj /Fdlib\IR\CMakeFiles\LLVMCore.dir\LLVMCore.pdb -c -- C:\_work\llvm-project\llvm-project\llvm\lib\IR\DebugLoc.cpp
In file included from C:\_work\llvm-project\llvm-project\llvm\lib\IR\DebugLoc.cpp:11:
In file included from C:\_work\llvm-project\llvm-project\llvm\include\llvm/IR/DebugInfo.h:28:
In file included from C:\_work\llvm-project\llvm-project\llvm\include\llvm/IR/IntrinsicInst.h:27:
In file included from C:\_work\llvm-project\llvm-project\llvm\include\llvm/IR/DebugInfoMetadata.h:28:
C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/CommandLine.h(497,68): error: no viable conversion from 'const function<void (bool)>' to 'function<void (const typename llvm::cl::parser<std::string>::parser_data_type &)>'
497 |   template <typename Opt> void apply(Opt &O) const { O.setCallback(CB); }
|                                                                    ^~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/CommandLine.h(1310,66): note: in instantiation of function template specialization 'llvm::cl::cb<void, bool>::apply<llvm::cl::list<std::basic_string<char>>>' requested here
1310 |   template <class Opt> static void opt(const Mod &M, Opt &O) { M.apply(O); }
|                                                                  ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/CommandLine.h(1364,20): note: in instantiation of function template specialization 'llvm::cl::applicator<llvm::cl::cb<void, bool>>::opt<llvm::cl::list<std::basic_string<char>>>' requested here
1364 |   applicator<Mod>::opt(M, *O);
|                    ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/CommandLine.h(1360,3): note: in instantiation of function template specialization 'llvm::cl::apply<llvm::cl::list<std::basic_string<char>>, llvm::cl::cb<void, bool>>' requested here
1360 |   apply(O, Ms...);
|   ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/CommandLine.h(1360,3): note: in instantiation of function template specialization 'llvm::cl::apply<llvm::cl::list<std::basic_string<char>>, llvm::cl::OptionHidden, llvm::cl::cb<void, bool>>' requested here
C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/CommandLine.h(1360,3): note: in instantiation of function template specialization 'llvm::cl::apply<llvm::cl::list<std::basic_string<char>>, llvm::cl::ValueExpected, llvm::cl::OptionHidden, llvm::cl::cb<void, bool>>' requested here
C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/CommandLine.h(1360,3): note: in instantiation of function template specialization 'llvm::cl::apply<llvm::cl::list<std::basic_string<char>>, llvm::cl::MiscFlags, llvm::cl::ValueExpected, llvm::cl::OptionHidden, llvm::cl::cb<void, bool>>' requested here
C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/CommandLine.h(1360,3): note: in instantiation of function template specialization 'llvm::cl::apply<llvm::cl::list<std::basic_string<char>>, llvm::cl::desc, llvm::cl::MiscFlags, llvm::cl::ValueExpected, llvm::cl::OptionHidden, llvm::cl::cb<void, bool>>' requested here
C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/CommandLine.h(1801,5): note: in instantiation of function template specialization 'llvm::cl::apply<llvm::cl::list<std::basic_string<char>>, char[26], llvm::cl::desc, llvm::cl::MiscFlags, llvm::cl::ValueExpected, llvm::cl::OptionHidden, llvm::cl::cb<void, bool>>' requested here
1801 |     apply(this, Ms...);
|     ^
C:\_work\llvm-project\llvm-project\llvm\lib\IR\DebugLoc.cpp(49,23): note: in instantiation of function template specialization 'llvm::cl::list<std::basic_string<char>>::list<char[26], llvm::cl::desc, llvm::cl::MiscFlags, llvm::cl::ValueExpected, llvm::cl::OptionHidden, llvm::cl::cb<void, bool>>' requested here
49 | cl::list<std::string> EnableOriginStacktraces(
|                       ^
C:\BuildTools\VC\Tools\MSVC\14.44.35207\include\functional(1096,5): note: candidate constructor not viable: no known conversion from 'const std::function<void (bool)>' to 'nullptr_t' (aka 'std::nullptr_t') for 1st argument
1096 |     function(nullptr_t) noexcept {}
|     ^        ~~~~~~~~~
C:\BuildTools\VC\Tools\MSVC\14.44.35207\include\functional(1098,5): note: candidate constructor not viable: no known conversion from 'const std::function<void (bool)>' to 'const function<void (const std::basic_string<char> &)> &' for 1st argument
1098 |     function(const function& _Right) {
|     ^        ~~~~~~~~~~~~~~~~~~~~~~
C:\BuildTools\VC\Tools\MSVC\14.44.35207\include\functional(1149,5): note: candidate constructor not viable: no known conversion from 'const std::function<void (bool)>' to 'function<void (const std::basic_string<char> &)> &&' for 1st argument
1149 |     function(function&& _Right) noexcept {
|     ^        ~~~~~~~~~~~~~~~~~
C:\BuildTools\VC\Tools\MSVC\14.44.35207\include\functional(1103,5): note: candidate template ignored: requirement 'conjunction_v<std::negation<std::is_same<std::function<void (bool)>, std::function<void (const std::basic_string<char, std::char_traits<char>, std::allocator<char>> &)>>>, std::_Is_invocable_r<void, std::function<void (bool)> &, const std::basic_string<char, std::char_traits<char>, std::allocator<char>> &>>' was not satisfied [with _Fx = const std::function<void (bool)> &]
1103 |     function(_Fx&& _Func) {
|     ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/CommandLine.h(1806,75): note: passing argument to parameter 'CB' here
1806 |       std::function<void(const typename ParserClass::parser_data_type &)> CB) {
|                                                                           ^
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/206128


More information about the llvm-commits mailing list