summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/X86/misched-dbg-value.ll
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-08-06 00:21:25 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-08-06 00:21:25 +0000
commitfb0412f03992945d96a35191165764a2a9ea9751 (patch)
tree6e33c70e00ced6278e172aaeb7f5f8ab6f1be217 /llvm/test/DebugInfo/X86/misched-dbg-value.ll
parent3b652621a990cef7b8e291beb3f5446ef4f5bfdc (diff)
downloadbcm5719-llvm-fb0412f03992945d96a35191165764a2a9ea9751.tar.gz
bcm5719-llvm-fb0412f03992945d96a35191165764a2a9ea9751.zip
DebugInfo: Assert that any CU for which debug_loc lists are emitted, has at least one range.
This was coming in weird debug info that had variables (and hence debug_locs) but was in GMLT mode (because it was missing the 13th field of the compile_unit metadata) so no ranges were constructed. We should always have at least one range for any CU with a debug_loc in it - because the range should cover the debug_loc. The assertion just ensures that the "!= 1" range case inside the subsequent loop doesn't get entered for the case where there are no ranges at all, which should never reach here in the first place. llvm-svn: 214939
Diffstat (limited to 'llvm/test/DebugInfo/X86/misched-dbg-value.ll')
-rw-r--r--llvm/test/DebugInfo/X86/misched-dbg-value.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/DebugInfo/X86/misched-dbg-value.ll b/llvm/test/DebugInfo/X86/misched-dbg-value.ll
index c713e65110e..b0e166f2a5e 100644
--- a/llvm/test/DebugInfo/X86/misched-dbg-value.ll
+++ b/llvm/test/DebugInfo/X86/misched-dbg-value.ll
@@ -103,7 +103,7 @@ attributes #1 = { nounwind readnone }
!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!83}
-!0 = metadata !{i32 786449, metadata !82, i32 12, metadata !"clang version 3.3 (trunk 175015)", i1 true, metadata !"", i32 0, metadata !1, metadata !10, metadata !11, metadata !29, metadata !10, metadata !""} ; [ DW_TAG_compile_unit ] [/Users/manmanren/test-Nov/rdar_13183203/test2/dry.c] [DW_LANG_C99]
+!0 = metadata !{i32 786449, metadata !82, i32 12, metadata !"clang version 3.3 (trunk 175015)", i1 true, metadata !"", i32 0, metadata !1, metadata !10, metadata !11, metadata !29, metadata !10, metadata !"", i32 1} ; [ DW_TAG_compile_unit ] [/Users/manmanren/test-Nov/rdar_13183203/test2/dry.c] [DW_LANG_C99]
!1 = metadata !{metadata !2}
!2 = metadata !{i32 786436, metadata !82, null, metadata !"", i32 128, i64 32, i64 32, i32 0, i32 0, null, metadata !4, i32 0, null, null, null} ; [ DW_TAG_enumeration_type ] [line 128, size 32, align 32, offset 0] [def] [from ]
!3 = metadata !{i32 786473, metadata !82} ; [ DW_TAG_file_type ]
OpenPOWER on IntegriCloud