summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2014-12-05 18:19:38 +0000
committerAdrian Prantl <aprantl@apple.com>2014-12-05 18:19:38 +0000
commitb9a88e294223b48816f2c64d769b31640d5afcc6 (patch)
treee41f67e9f1476cfe99685c143b549d75554e1ee9 /llvm/test/DebugInfo
parent36d07d153eeeec9f2f6ef8a52fccbbe70e53d728 (diff)
downloadbcm5719-llvm-b9a88e294223b48816f2c64d769b31640d5afcc6.tar.gz
bcm5719-llvm-b9a88e294223b48816f2c64d769b31640d5afcc6.zip
Fix a bug when pretty-printing DW_OP_deref.
llvm-svn: 223493
Diffstat (limited to 'llvm/test/DebugInfo')
-rw-r--r--llvm/test/DebugInfo/X86/block-capture.ll2
-rw-r--r--llvm/test/DebugInfo/X86/op_deref.ll3
2 files changed, 4 insertions, 1 deletions
diff --git a/llvm/test/DebugInfo/X86/block-capture.ll b/llvm/test/DebugInfo/X86/block-capture.ll
index 04a50639ae2..b04fa29b884 100644
--- a/llvm/test/DebugInfo/X86/block-capture.ll
+++ b/llvm/test/DebugInfo/X86/block-capture.ll
@@ -124,7 +124,7 @@ attributes #3 = { nounwind }
!66 = metadata !{i32 2, i32 20, metadata !8, null}
!67 = metadata !{i32 2, i32 21, metadata !8, null}
!68 = metadata !{metadata !"0x100\00block\002\000", metadata !8, metadata !5, metadata !25} ; [ DW_TAG_auto_variable ] [block] [line 2]
-!69 = metadata !{metadata !"0x102\006\0034\0032"} ; [ DW_TAG_expression ] [DW_OP_derefUnknown]
+!69 = metadata !{metadata !"0x102\006\0034\0032"} ; [ DW_TAG_expression ] [DW_OP_deref]
!70 = metadata !{i32 2, i32 9, metadata !8, null}
!71 = metadata !{i32 2, i32 23, metadata !72, null}
!72 = metadata !{metadata !"0xb\002\0021\000", metadata !1, metadata !8} ; [ DW_TAG_lexical_block ] [/foo.m]
diff --git a/llvm/test/DebugInfo/X86/op_deref.ll b/llvm/test/DebugInfo/X86/op_deref.ll
index 18c4fc15da7..ac90448012a 100644
--- a/llvm/test/DebugInfo/X86/op_deref.ll
+++ b/llvm/test/DebugInfo/X86/op_deref.ll
@@ -23,6 +23,9 @@
; ASM-CHECK: DEBUG_VALUE: vla <- RCX
; ASM-CHECK: DW_OP_breg2
+; RUN: llvm-as %s -o - | llvm-dis - | FileCheck %s --check-prefix=PRETTY-PRINT
+; PRETTY-PRINT: [ DW_TAG_expression ] [DW_OP_deref]
+
define void @testVLAwithSize(i32 %s) nounwind uwtable ssp {
entry:
%s.addr = alloca i32, align 4
OpenPOWER on IntegriCloud