Files
clang-p2996/clang/test/CodeGen/debug-prefix-map.cpp
Dan McGregor ea6ecdbfe0 Call printName to get name of Decl
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
2023-05-02 11:56:23 -04:00

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{{/|\\\\}}{{.*}}",