[clang] [llvm] Add option to generate additional debug info for expression dereferencing pointer to pointers. (PR #81545)
Mehdi Amini via cfe-commits
cfe-commits at lists.llvm.org
Wed May 29 21:59:06 PDT 2024
joker-eph wrote:
Reverted in 7d4a45d98275e669bda40410f064891beb3480ce ; test is failing like this on Windows:
```
# RUN: at line 3
c:\ws\buildbot\premerge-monolithic-windows\build\bin\clang.exe -cc1 -internal-isystem C:\ws\buildbot\premerge-monolithic-windows\build\lib\clang\19\include -nostdsysteminc C:\ws\buildbot\premerge-monolithic-windows\llvm-project\clang\test\CodeGenCXX\debug-info-ptr-to-ptr.cpp -fdebug-info-for-profiling -debug-info-kind=constructor -emit-llvm -o - | c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe C:\ws\buildbot\premerge-monolithic-windows\llvm-project\clang\test\CodeGenCXX\debug-info-ptr-to-ptr.cpp
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\clang.exe' -cc1 -internal-isystem 'C:\ws\buildbot\premerge-monolithic-windows\build\lib\clang\19\include' -nostdsysteminc 'C:\ws\buildbot\premerge-monolithic-windows\llvm-project\clang\test\CodeGenCXX\debug-info-ptr-to-ptr.cpp' -fdebug-info-for-profiling -debug-info-kind=constructor -emit-llvm -o -
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe' 'C:\ws\buildbot\premerge-monolithic-windows\llvm-project\clang\test\CodeGenCXX\debug-info-ptr-to-ptr.cpp'
# .---command stderr------------
# | C:\ws\buildbot\premerge-monolithic-windows\llvm-project\clang\test\CodeGenCXX\debug-info-ptr-to-ptr.cpp:60:17: error: CHECK-LABEL: expected string not found in input
# | // CHECK-LABEL: define dso_local noundef signext i8 @{{.*}}func4{{.*}}(
# | ^
# | <stdin>:48:54: note: scanning from here
# | define dso_local noundef i32 @"?func3@@YAHPEAVB@@@Z"(ptr noundef %b) #0 !dbg !45 {
# | ^
# | <stdin>:66:1: note: possible intended match here
# | define dso_local noundef i8 @"?func4@@YADPEAVC@@@Z"(ptr noundef %c) #0 !dbg !55 {
# | ^
# |
```
https://github.com/llvm/llvm-project/pull/81545
More information about the cfe-commits
mailing list