Skip to content

Commit 89b7ad8

Browse files
author
git apple-llvm automerger
committed
Merge commit '8d9ddd4f509c' from llvm.org/main into next
2 parents 392ea31 + 8d9ddd4 commit 89b7ad8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

clang/lib/CodeGen/CGDebugInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4888,7 +4888,7 @@ struct ReconstitutableType : public RecursiveASTVisitor<ReconstitutableType> {
48884888
bool VisitFunctionProtoType(FunctionProtoType *FT) {
48894889
// noexcept is not encoded in DWARF, so the reversi
48904890
Reconstitutable &= !isNoexceptExceptionSpec(FT->getExceptionSpecType());
4891-
return !Reconstitutable;
4891+
return Reconstitutable;
48924892
}
48934893
bool TraverseRecordType(RecordType *RT) {
48944894
// Unnamed classes/lambdas can't be reconstituted due to a lack of column

clang/test/CodeGenCXX/debug-info-simple-template-names.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ void f() {
5555
} unnamed_struct;
5656
f1<decltype(unnamed_struct)>();
5757
// CHECK: !DISubprogram(name: "f1<(unnamed struct at {{.*}}debug-info-simple-template-names.cpp:[[# @LINE - 3]]:3)>",
58+
f1<void (decltype(unnamed_struct))>();
59+
// CHECK: !DISubprogram(name: "f1<void ((unnamed struct at {{.*}}CodeGenCXX/debug-info-simple-template-names.cpp:[[# @LINE - 5]]:3))>",
5860
enum {} unnamed_enum;
5961
f1<decltype(unnamed_enum)>();
6062
// CHECK: !DISubprogram(name: "f1<(unnamed enum at {{.*}}debug-info-simple-template-names.cpp:[[# @LINE - 2]]:3)>",

0 commit comments

Comments
 (0)