[llvm] [TableGen] Avoid assignmentInAssert warning (PR #139715)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Tue May 13 05:12:21 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `lldb-remote-linux-ubuntu` running on `as-builder-9` while building `llvm` at step 7 "build-default".

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

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

```
Step 7 (build-default) failure: cmake (failure)
...
15.945 [2125/66/3149] Building CXX object tools/clang/lib/Analysis/CMakeFiles/obj.clangAnalysis.dir/CallGraph.cpp.o
15.949 [2124/66/3150] Building CXX object tools/clang/lib/Analysis/CMakeFiles/obj.clangAnalysis.dir/CocoaConventions.cpp.o
15.950 [2123/66/3151] Building CXX object tools/clang/lib/Analysis/CMakeFiles/obj.clangAnalysis.dir/CloneDetection.cpp.o
15.954 [2122/66/3152] Linking CXX static library lib/libLLVMipo.a
15.960 [2121/66/3153] Building CXX object tools/clang/lib/Analysis/CMakeFiles/obj.clangAnalysis.dir/CodeInjector.cpp.o
15.962 [2120/66/3154] Building CXX object tools/clang/lib/Analysis/CMakeFiles/obj.clangAnalysis.dir/ConstructionContext.cpp.o
15.963 [2119/66/3155] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/CodeCompleteConsumer.cpp.o
15.969 [2118/66/3156] Building CXX object tools/clang/lib/Analysis/CMakeFiles/obj.clangAnalysis.dir/Consumed.cpp.o
15.974 [2117/66/3157] Building CXX object tools/clang/lib/Analysis/CMakeFiles/obj.clangAnalysis.dir/Dominators.cpp.o
15.975 [2116/66/3158] Building AArch64GenPreLegalizeGICombiner.inc...
FAILED: lib/Target/AArch64/AArch64GenPreLegalizeGICombiner.inc /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/lib/Target/AArch64/AArch64GenPreLegalizeGICombiner.inc 
cd /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/lib/Target/AArch64 && /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/bin/llvm-tblgen -gen-global-isel-combiner -combiners="AArch64PreLegalizerCombiner" -I /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/lib/Target/AArch64 -I/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/include -I/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/include -I /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/lib/Target /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/lib/Target/AArch64/AArch64.td --write-if-changed -o AArch64GenPreLegalizeGICombiner.inc -d AArch64GenPreLegalizeGICombiner.inc.d && /usr/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/lib/Target/AArch64 /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/lib/Target/AArch64 /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/lib/Target/AArch64/AArch64GenPreLegalizeGICombiner.inc.d /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/CMakeFiles/d/0afcb53c34b613eb17e3d76fc15214c7230eb4f9ce9742517f6c6b12a199a09d.d
llvm-tblgen: /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/utils/TableGen/GlobalISelCombinerEmitter.cpp:2615: virtual void {anonymous}::GICombinerEmitter::emitTestSimplePredicate(llvm::raw_ostream&): Assertion `ExpectedID == ID && "combine rules are not ordered!"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/bin/llvm-tblgen -gen-global-isel-combiner -combiners=AArch64PreLegalizerCombiner -I /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/lib/Target/AArch64 -I/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/include -I/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/include -I /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/lib/Target /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/lib/Target/AArch64/AArch64.td --write-if-changed -o AArch64GenPreLegalizeGICombiner.inc -d AArch64GenPreLegalizeGICombiner.inc.d
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  llvm-tblgen 0x0000559ae775abc2
1  llvm-tblgen 0x0000559ae7757e0f
2  llvm-tblgen 0x0000559ae7757f54
3  libc.so.6   0x000075878a245330
4  libc.so.6   0x000075878a29eb2c pthread_kill + 284
5  libc.so.6   0x000075878a24527e gsignal + 30
6  libc.so.6   0x000075878a2288ff abort + 223
7  libc.so.6   0x000075878a22881b
8  libc.so.6   0x000075878a23b517
9  llvm-tblgen 0x0000559ae761b700
10 llvm-tblgen 0x0000559ae745d62c
11 llvm-tblgen 0x0000559ae7634723
12 llvm-tblgen 0x0000559ae779ca8e
13 llvm-tblgen 0x0000559ae77676da
14 llvm-tblgen 0x0000559ae742c6c7
15 libc.so.6   0x000075878a22a1ca
16 libc.so.6   0x000075878a22a28b __libc_start_main + 139
17 llvm-tblgen 0x0000559ae73f1e45
Aborted (core dumped)
15.986 [2116/65/3159] Building CXX object tools/clang/lib/Analysis/CMakeFiles/obj.clangAnalysis.dir/IntervalPartition.cpp.o
15.987 [2116/64/3160] Building CXX object tools/clang/lib/Analysis/CMakeFiles/obj.clangAnalysis.dir/FixitUtil.cpp.o
15.988 [2116/63/3161] Building CXX object tools/clang/lib/Analysis/CMakeFiles/obj.clangAnalysis.dir/ExprMutationAnalyzer.cpp.o
15.992 [2116/62/3162] Building CXX object tools/clang/lib/Analysis/CMakeFiles/obj.clangAnalysis.dir/IssueHash.cpp.o
15.995 [2116/61/3163] Building CXX object tools/clang/lib/Analysis/CMakeFiles/obj.clangAnalysis.dir/LiveVariables.cpp.o
16.019 [2116/60/3164] Building AArch64GenPostLegalizeGILowering.inc...
FAILED: lib/Target/AArch64/AArch64GenPostLegalizeGILowering.inc /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/lib/Target/AArch64/AArch64GenPostLegalizeGILowering.inc 
cd /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/lib/Target/AArch64 && /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/bin/llvm-tblgen -gen-global-isel-combiner -combiners="AArch64PostLegalizerLowering" -I /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/lib/Target/AArch64 -I/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/include -I/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/include -I /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/lib/Target /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/lib/Target/AArch64/AArch64.td --write-if-changed -o AArch64GenPostLegalizeGILowering.inc -d AArch64GenPostLegalizeGILowering.inc.d && /usr/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/lib/Target/AArch64 /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/lib/Target/AArch64 /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/lib/Target/AArch64/AArch64GenPostLegalizeGILowering.inc.d /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/CMakeFiles/d/40672b29ff32974e9af4e2eb22bc9fbce3c26adb8f1f2df018b62ff81062a0c9.d
llvm-tblgen: /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/utils/TableGen/GlobalISelCombinerEmitter.cpp:2615: virtual void {anonymous}::GICombinerEmitter::emitTestSimplePredicate(llvm::raw_ostream&): Assertion `ExpectedID == ID && "combine rules are not ordered!"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/bin/llvm-tblgen -gen-global-isel-combiner -combiners=AArch64PostLegalizerLowering -I /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/lib/Target/AArch64 -I/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/include -I/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/include -I /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/lib/Target /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/lib/Target/AArch64/AArch64.td --write-if-changed -o AArch64GenPostLegalizeGILowering.inc -d AArch64GenPostLegalizeGILowering.inc.d
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):

```

</details>

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


More information about the llvm-commits mailing list