summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/X86/default-subrange-array.ll
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-08-30 18:06:51 +0000
committerAdrian Prantl <aprantl@apple.com>2017-08-30 18:06:51 +0000
commit05782218abd549e0c1bc77032fa9b55526371cfd (patch)
tree1cd1e0e5ace565ad80e6e9053bb7d858a38362b5 /llvm/test/DebugInfo/X86/default-subrange-array.ll
parent1a4cbbe49fcaebe63246c784983556528bcb27d8 (diff)
downloadbcm5719-llvm-05782218abd549e0c1bc77032fa9b55526371cfd.tar.gz
bcm5719-llvm-05782218abd549e0c1bc77032fa9b55526371cfd.zip
Canonicalize the representation of empty an expression in DIGlobalVariableExpression
This change simplifies code that has to deal with DIGlobalVariableExpression and mirrors how we treat DIExpressions in debug info intrinsics. Before this change there were two ways of representing empty expressions on globals, a nullptr and an empty !DIExpression(). If someone needs to upgrade out-of-tree testcases: perl -pi -e 's/(!DIGlobalVariableExpression\(var: ![0-9]*)\)/\1, expr: !DIExpression())/g' <MYTEST.ll> will catch 95%. llvm-svn: 312144
Diffstat (limited to 'llvm/test/DebugInfo/X86/default-subrange-array.ll')
-rw-r--r--llvm/test/DebugInfo/X86/default-subrange-array.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/DebugInfo/X86/default-subrange-array.ll b/llvm/test/DebugInfo/X86/default-subrange-array.ll
index 564e195a36f..83b4a8ad879 100644
--- a/llvm/test/DebugInfo/X86/default-subrange-array.ll
+++ b/llvm/test/DebugInfo/X86/default-subrange-array.ll
@@ -32,7 +32,7 @@ source_filename = "test/DebugInfo/X86/default-subrange-array.ll"
!llvm.dbg.cu = !{!14}
!llvm.module.flags = !{!17}
-!0 = !DIGlobalVariableExpression(var: !1)
+!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = !DIGlobalVariable(name: "a", scope: null, file: !2, line: 1, type: !3, isLocal: false, isDefinition: true)
!2 = !DIFile(filename: "t.cpp", directory: "/Volumes/Sandbox/llvm")
!3 = !DICompositeType(tag: DW_TAG_class_type, name: "A", file: !2, line: 1, align: 32, elements: !4)
OpenPOWER on IntegriCloud