summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/diglobalvariable.ll
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2017-08-16 13:39:07 +0000
committerDavide Italiano <davide@freebsd.org>2017-08-16 13:39:07 +0000
commit75ebc568e250c8c767ee2d60ed26ca3d2a085316 (patch)
tree7bddbafea308698caf47523e24a3ebc924ad4f6d /llvm/test/Assembler/diglobalvariable.ll
parent83f0cd17eb1278c5adf89cf79d713b70ff880c71 (diff)
downloadbcm5719-llvm-75ebc568e250c8c767ee2d60ed26ca3d2a085316.tar.gz
bcm5719-llvm-75ebc568e250c8c767ee2d60ed26ca3d2a085316.zip
[DI] Every DIGlobalVariable should have a type.
I'll make this a verifier check to catch other violations. This commit fixes the tests already in tree. llvm-svn: 311004
Diffstat (limited to 'llvm/test/Assembler/diglobalvariable.ll')
-rw-r--r--llvm/test/Assembler/diglobalvariable.ll5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/test/Assembler/diglobalvariable.ll b/llvm/test/Assembler/diglobalvariable.ll
index 02dd6289c0a..b4ff508bed6 100644
--- a/llvm/test/Assembler/diglobalvariable.ll
+++ b/llvm/test/Assembler/diglobalvariable.ll
@@ -20,5 +20,6 @@
!6 = !DICompositeType(tag: DW_TAG_structure_type, name: "Class", size: 8, align: 8)
!7 = !DIDerivedType(tag: DW_TAG_member, name: "mem", flags: DIFlagStaticMember, scope: !6, baseType: !3)
-; CHECK: !8 = !DIGlobalVariable(name: "mem", scope: !0, isLocal: false, isDefinition: true, declaration: !7)
-!8 = !DIGlobalVariable(name: "mem", scope: !0, declaration: !7)
+; CHECK: !8 = !DIGlobalVariable(name: "mem", scope: !0, type: !9, isLocal: false, isDefinition: true, declaration: !7)
+!8 = !DIGlobalVariable(name: "mem", scope: !0, declaration: !7, type: !9)
+!9 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
OpenPOWER on IntegriCloud