Rather than sending a name directly to the stream, use printName to preserve any PrintingPolicy. This ensures that names are properly affected by path remapping. Fixes: https://github.com/llvm/llvm-project/issues/62192 Differential Revision: https://reviews.llvm.org/D149272
12 lines
321 B
C++
12 lines
321 B
C++
// RUN: %clang_cc1 -debug-info-kind=standalone -fdebug-prefix-map=%p=./UNLIKELY_PATH/empty -S %s -emit-llvm -o - | FileCheck %s
|
|
|
|
struct alignas(64) an {
|
|
struct {
|
|
unsigned char x{0};
|
|
} arr[64];
|
|
};
|
|
|
|
struct an *pan = new an;
|
|
|
|
// CHECK: !DISubprogram(name: "(unnamed struct at ./UNLIKELY_PATH/empty{{/|\\\\}}{{.*}}",
|