Skip to content

Commit baafdce

Browse files
fix failing CI
I used llvm 16 and updated the reference tests
1 parent f51ca9d commit baafdce

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

tests/reference/llvm_dbg-expr_01-9fc5f30.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "llvm_dbg-expr_01-9fc5f30.stdout",
9-
"stdout_hash": "05da15be1ee079ac286df323e40803c05309df3355abf9f08f26413e",
9+
"stdout_hash": "70643017f0ad204393988f111369cdd921c1c297149078182707cb54",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0

tests/reference/llvm_dbg-expr_01-9fc5f30.stdout

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ source_filename = "LFortran"
55
@1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
66
@2 = private unnamed_addr constant [5 x i8] c"%d%s\00", align 1
77

8-
define void @__module___main_____main__global_stmts() !dbg !2 {
8+
define void @__module___main_____main__global_stmts() !dbg !3 {
99
.entry:
1010
call void @__module___main___main0(), !dbg !6
1111
br label %return, !dbg !6
@@ -33,7 +33,7 @@ return: ; preds = %.entry
3333
ret void, !dbg !21
3434
}
3535

36-
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
36+
; Function Attrs: nounwind readnone speculatable willreturn
3737
declare void @llvm.dbg.declare(metadata, metadata, metadata) #0
3838

3939
declare void @_lfortran_printf(i8*, ...)
@@ -47,18 +47,18 @@ define i32 @main(i32 %0, i8** %1) !dbg !22 {
4747

4848
declare void @_lpython_call_initial_functions(i32, i8**)
4949

50-
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
50+
attributes #0 = { nounwind readnone speculatable willreturn }
5151

5252
!llvm.dbg.cu = !{!0}
5353

54-
!0 = distinct !DICompileUnit(language: DW_LANG_C, file: !1, producer: "LPython Compiler", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
54+
!0 = distinct !DICompileUnit(language: DW_LANG_C, file: !1, producer: "LPython Compiler", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)
5555
!1 = !DIFile(filename: "tests/expr_01.py", directory: ".")
56-
!2 = distinct !DISubprogram(name: "__main__global_stmts", scope: !1, file: !1, line: 1, type: !3, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !5)
57-
!3 = !DISubroutineType(types: !4)
58-
!4 = !{null}
59-
!5 = !{}
60-
!6 = !DILocation(line: 9, column: 1, scope: !2)
61-
!7 = distinct !DISubprogram(name: "main0", scope: !1, file: !1, line: 1, type: !3, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !5)
56+
!2 = !{}
57+
!3 = distinct !DISubprogram(name: "__main__global_stmts", scope: !1, file: !1, line: 1, type: !4, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
58+
!4 = !DISubroutineType(types: !5)
59+
!5 = !{null}
60+
!6 = !DILocation(line: 9, column: 1, scope: !3)
61+
!7 = distinct !DISubprogram(name: "main0", scope: !1, file: !1, line: 1, type: !4, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
6262
!8 = !DILocation(line: 1, column: 1, scope: !7)
6363
!9 = !DILocalVariable(name: "x", arg: 1, scope: !7, file: !1, line: 2, type: !10)
6464
!10 = !DIBasicType(name: "integer", size: 32, encoding: DW_ATE_signed)
@@ -73,7 +73,7 @@ attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memo
7373
!19 = !DIBasicType(name: "double", size: 64, encoding: DW_ATE_float)
7474
!20 = !DILocation(line: 5, scope: !7)
7575
!21 = !DILocation(line: 6, column: 5, scope: !7)
76-
!22 = distinct !DISubprogram(name: "main_program", scope: !1, file: !1, line: 1, type: !23, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !5)
76+
!22 = distinct !DISubprogram(name: "main_program", scope: !1, file: !1, line: 1, type: !23, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
7777
!23 = !DISubroutineType(types: !24)
7878
!24 = !{!10}
7979
!25 = !DILocation(line: 1, column: 1, scope: !22)

0 commit comments

Comments
 (0)