Skip to content

Commit 75cf826

Browse files
committed
[KeyInstr][Clang] Fix atomic ops atoms test
Fixup test added in #141624 (ddecfa6).
1 parent b77c713 commit 75cf826

File tree

1 file changed

+4
-0
lines changed
  • clang/test/DebugInfo/KeyInstructions

1 file changed

+4
-0
lines changed

clang/test/DebugInfo/KeyInstructions/atomic.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ void fun() {
102102
// CHECK-NEXT: %loadedv20 = trunc i8 %28 to i1, !dbg [[LINE87_G15R3:!.*]]
103103
// CHECK-NEXT: %conv21 = zext i1 %loadedv20 to i32, !dbg [[LINE87_G15R2:!.*]]
104104
// CHECK-NEXT: store i32 %conv21, ptr %r7, align 4, !dbg [[LINE87_G15R1:!.*]]
105+
106+
// CHECK: ret{{.*}}, !dbg [[RET:!.*]]
105107
}
106108

107109
// CHECK: [[LINE11_G2R1]] = !DILocation(line: 11, scope: ![[#]], atomGroup: 2, atomRank: 1)
@@ -160,3 +162,5 @@ void fun() {
160162
// CHECK: [[LINE87_G15R3]] = !DILocation(line: 87, scope: ![[#]], atomGroup: 15, atomRank: 3)
161163
// CHECK: [[LINE87_G15R2]] = !DILocation(line: 87, scope: ![[#]], atomGroup: 15, atomRank: 2)
162164
// CHECK: [[LINE87_G15R1]] = !DILocation(line: 87, scope: ![[#]], atomGroup: 15, atomRank: 1)
165+
166+
// CHECK: [[RET]] = !DILocation({{.*}}, atomGroup: 17, atomRank: 1)

0 commit comments

Comments
 (0)