[llvm] Emit DW_OP_lit0/1 for constant boolean values (PR #155539)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 30 02:23:09 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-aarch64-quick` running on `linaro-clang-aarch64-quick` while building `llvm` at step 5 "ninja check 1".

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

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

```
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: DebugInfo/debug-bool-const-location.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/llc /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/DebugInfo/debug-bool-const-location.ll -O3 -filetype=obj -o - | /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/llvm-dwarfdump - | /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/DebugInfo/debug-bool-const-location.ll # RUN: at line 2
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/llc /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/DebugInfo/debug-bool-const-location.ll -O3 -filetype=obj -o -
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/llvm-dwarfdump -
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/DebugInfo/debug-bool-const-location.ll
/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/DebugInfo/debug-bool-const-location.ll:5:10: error: CHECK: expected string not found in input
; CHECK: {{.*}} DW_OP_lit1
         ^
<stdin>:25:28: note: scanning from here
0x0000003f: DW_TAG_variable
                           ^
<stdin>:26:14: note: possible intended match here
 DW_AT_location (DW_OP_reg8 W8)
             ^

Input file: <stdin>
Check file: /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/DebugInfo/debug-bool-const-location.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          20:  DW_AT_name ("foo") 
          21:  DW_AT_decl_file ("test") 
          22:  DW_AT_decl_line (5) 
          23:  DW_AT_external (true) 
          24:  
          25: 0x0000003f: DW_TAG_variable 
check:5'0                                X error: no match found
          26:  DW_AT_location (DW_OP_reg8 W8) 
check:5'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:5'1                  ?                   possible intended match
          27:  DW_AT_name ("arg") 
check:5'0     ~~~~~~~~~~~~~~~~~~~~
          28:  DW_AT_decl_file ("test") 
check:5'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
          29:  DW_AT_decl_line (5) 
check:5'0     ~~~~~~~~~~~~~~~~~~~~~
          30:  DW_AT_type (0x0000004d "bool") 
check:5'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          31:  
check:5'0     ~
           .
...

```

</details>

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


More information about the llvm-commits mailing list