Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit dcbd7ca

Browse files
author
Richard Sandiford
committed
[SystemZ] Add "volatile" to a dead store in variable-loc.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199116 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent be110d9 commit dcbd7ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/DebugInfo/SystemZ/variable-loc.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
;
33
; This is a regression test making sure the location of variables is correct in
44
; debugging information, even if they're addressed via the frame pointer.
5-
; A copy of the AArch64 test, commandeered for SystemZ.
5+
; Originally a copy of the AArch64 test, commandeered for SystemZ.
66
;
77
; First make sure main_arr is where we expect it: %r11 + 164
88
;
@@ -39,7 +39,7 @@ entry:
3939
%retval = alloca i32, align 4
4040
%main_arr = alloca [100 x i32], align 4
4141
%val = alloca i32, align 4
42-
store i32 0, i32* %retval
42+
store volatile i32 0, i32* %retval
4343
call void @llvm.dbg.declare(metadata !{[100 x i32]* %main_arr}, metadata !17), !dbg !22
4444
call void @llvm.dbg.declare(metadata !{i32* %val}, metadata !23), !dbg !24
4545
%arraydecay = getelementptr inbounds [100 x i32]* %main_arr, i32 0, i32 0, !dbg !25

0 commit comments

Comments
 (0)