Skip to content

Commit b56190d

Browse files
committed
Delete tests for DIExpression validity
1 parent ea2a924 commit b56190d

File tree

4 files changed

+8
-82
lines changed

4 files changed

+8
-82
lines changed

llvm/test/Assembler/dbg-record-invalid-10.ll

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

llvm/test/Assembler/dbg-record-invalid-11.ll

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

llvm/test/Assembler/dbg-record-invalid-5.ll

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
;; Test that we get a parser error when we have a debug record that does not use
2-
;; an inline DIExpression.
1+
;; Test that we get a parser error when a basic block contains only a debug
2+
;; record.
33
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
44
; ModuleID = '<stdin>'
55
source_filename = "<stdin>"
66

77
define dso_local i32 @f(i32 %a) !dbg !7 {
88
entry:
9-
; CHECK: <stdin>:[[@LINE+1]]:29: error: expected valid inline DIExpression here
10-
#dbg_value(i32 %a, !12, !20, !14)
11-
ret i32 %a, !dbg !18
9+
#dbg_value(!DIArgList(i32 %a), !12, !DIExpression(), !14)
10+
; CHECK: <stdin>:[[@LINE+1]]:1: error: expected instruction opcode
1211
}
1312

1413
!llvm.dbg.cu = !{!0}
@@ -34,4 +33,3 @@ entry:
3433
!16 = !DILocation(line: 3, column: 20, scope: !7)
3534
!17 = !DILocation(line: 3, column: 25, scope: !7)
3635
!18 = !DILocation(line: 3, column: 30, scope: !7)
37-
!20 = !DIExpression()

llvm/test/Assembler/dbg-record-invalid-6.ll

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
;; Test that we get a parser error when we have a debug assign record that does
2-
;; not use an inline DIExpression for its address expression.
1+
;; Test that we get a parser error when we have a debug record with an
2+
;; incorrect number of arguments.
33
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
44
; ModuleID = '<stdin>'
55
source_filename = "<stdin>"
66

77
define dso_local i32 @f(i32 %a) !dbg !7 {
88
entry:
9-
; CHECK: <stdin>:[[@LINE+1]]:63: error: expected valid inline DIExpression here
10-
#dbg_assign(i32 %a, !12, !DIExpression(), !15, ptr undef, !20, !14)
9+
; CHECK: <stdin>:[[@LINE+1]]:46: error: expected '!' here
10+
#dbg_value(i32 %a, !12, !DIExpression(), i32 0)
1111
ret i32 %a, !dbg !18
1212
}
1313

@@ -34,4 +34,3 @@ entry:
3434
!16 = !DILocation(line: 3, column: 20, scope: !7)
3535
!17 = !DILocation(line: 3, column: 25, scope: !7)
3636
!18 = !DILocation(line: 3, column: 30, scope: !7)
37-
!20 = !DIExpression()

0 commit comments

Comments
 (0)