Skip to content

Commit 8055ae3

Browse files
committed
Revert "Add a verifier check that rejects non-distinct DISubprogram function"
This reverts commit e17f52d. while investigating bot breakage.
1 parent 6cb0d23 commit 8055ae3

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

llvm/lib/IR/Verifier.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,10 +2433,6 @@ void Verifier::visitFunction(const Function &F) {
24332433
"function must have a single !dbg attachment", &F, I.second);
24342434
AssertDI(isa<DISubprogram>(I.second),
24352435
"function !dbg attachment must be a subprogram", &F, I.second);
2436-
AssertDI(cast<DISubprogram>(I.second)->isDistinct(),
2437-
"function definition may only have a distinct !dbg attachment",
2438-
&F);
2439-
24402436
auto *SP = cast<DISubprogram>(I.second);
24412437
const Function *&AttachedTo = DISubprogramAttachments[SP];
24422438
AssertDI(!AttachedTo || AttachedTo == &F,

llvm/test/DebugInfo/Generic/2009-11-03-InsertExtractValue.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
!llvm.module.flags = !{!6}
44
!llvm.dbg.cu = !{!5}
55

6-
!0 = distinct !DISubprogram(name: "bar", linkageName: "_ZN3foo3barEv", line: 3, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagProtected | DIFlagPrototyped, isOptimized: false, scopeLine: 3, file: !4, scope: !1, type: !2)
6+
!0 = !DISubprogram(name: "bar", linkageName: "_ZN3foo3barEv", line: 3, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagProtected | DIFlagPrototyped, isOptimized: false, scopeLine: 3, file: !4, scope: !1, type: !2)
77
!1 = !DIFile(filename: "/foo", directory: "bar.cpp")
88
!2 = !DISubroutineType(types: !3)
99
!3 = !{null}

llvm/test/Verifier/unique-disubprogram.ll

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)