summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/SystemZ/variable-loc.ll
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>2014-01-13 15:42:16 +0000
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>2014-01-13 15:42:16 +0000
commit9b9e057ced959ce67e25b272200185a6f4a9c02e (patch)
treedb68c23dc584d6a55828ca059279e9ea9a7f4e24 /llvm/test/DebugInfo/SystemZ/variable-loc.ll
parent64c0c4c0158275b35567095fb39f872f935ccb14 (diff)
downloadbcm5719-llvm-9b9e057ced959ce67e25b272200185a6f4a9c02e.tar.gz
bcm5719-llvm-9b9e057ced959ce67e25b272200185a6f4a9c02e.zip
[SystemZ] Add "volatile" to a dead store in variable-loc.ll
llvm-svn: 199116
Diffstat (limited to 'llvm/test/DebugInfo/SystemZ/variable-loc.ll')
-rw-r--r--llvm/test/DebugInfo/SystemZ/variable-loc.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/DebugInfo/SystemZ/variable-loc.ll b/llvm/test/DebugInfo/SystemZ/variable-loc.ll
index 560b47747dd..f3b454835fd 100644
--- a/llvm/test/DebugInfo/SystemZ/variable-loc.ll
+++ b/llvm/test/DebugInfo/SystemZ/variable-loc.ll
@@ -2,7 +2,7 @@
;
; This is a regression test making sure the location of variables is correct in
; debugging information, even if they're addressed via the frame pointer.
-; A copy of the AArch64 test, commandeered for SystemZ.
+; Originally a copy of the AArch64 test, commandeered for SystemZ.
;
; First make sure main_arr is where we expect it: %r11 + 164
;
@@ -39,7 +39,7 @@ entry:
%retval = alloca i32, align 4
%main_arr = alloca [100 x i32], align 4
%val = alloca i32, align 4
- store i32 0, i32* %retval
+ store volatile i32 0, i32* %retval
call void @llvm.dbg.declare(metadata !{[100 x i32]* %main_arr}, metadata !17), !dbg !22
call void @llvm.dbg.declare(metadata !{i32* %val}, metadata !23), !dbg !24
%arraydecay = getelementptr inbounds [100 x i32]* %main_arr, i32 0, i32 0, !dbg !25
OpenPOWER on IntegriCloud