[llvm] [SCEVExp] Get DL from SE, strip constructor arg (NFC) (PR #171823)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 11 05:08:27 PST 2025


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 6417 tests passed
* 403 tests skipped

All executed tests passed, but another part of the build **failed**. Click on a failure below to see the details.

<details>
<summary>tools/polly/lib/CMakeFiles/obj.Polly.dir/Support/ScopHelper.cpp.o</summary>

```
FAILED: tools/polly/lib/CMakeFiles/obj.Polly.dir/Support/ScopHelper.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/polly/lib -I/home/gha/actions-runner/_work/llvm-project/llvm-project/polly/lib -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/polly/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/polly/lib/External -I/home/gha/actions-runner/_work/llvm-project/llvm-project/polly/lib/External/pet/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/polly/lib/External/isl/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/polly/lib/External/isl/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/polly/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 -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-exceptions -fno-rtti -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/polly/lib/CMakeFiles/obj.Polly.dir/Support/ScopHelper.cpp.o -MF tools/polly/lib/CMakeFiles/obj.Polly.dir/Support/ScopHelper.cpp.o.d -o tools/polly/lib/CMakeFiles/obj.Polly.dir/Support/ScopHelper.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/polly/lib/Support/ScopHelper.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/polly/lib/Support/ScopHelper.cpp:248:9: error: no matching constructor for initialization of 'SCEVExpander'
248 |       : Expander(GenSE, DL, Name, /*PreserveLCSSA=*/false), Name(Name), R(R),
|         ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h:186:12: note: candidate constructor not viable: requires at most 3 arguments, but 4 were provided
186 |   explicit SCEVExpander(ScalarEvolution &SE, const char *Name,
|            ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
187 |                         bool PreserveLCSSA = true)
|                         ~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h:64:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 4 were provided
64 | class SCEVExpander : public SCEVVisitor<SCEVExpander, Value *> {
|       ^~~~~~~~~~~~
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/171823


More information about the llvm-commits mailing list