mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
2f5cbb5947
Move over some more checks from `DIDescriptor::Verify()`, and change `LLParser` to require non-null `file:` fields in compile units. I've ignored the comment in test/Assembler/metadata-null-operands.ll since I disagree with it. At the time that test was written (r229960), the debug info verifier wasn't on by default, so my comment there is in the context of not expecting the verifier to be useful. It is now, and besides that, since r233394 we can check when parsing textual IR whether an operand is null that shouldn't be. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233654 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
464 B
LLVM
12 lines
464 B
LLVM
; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
|
|
; RUN: verify-uselistorder %s
|
|
|
|
; Don't crash on null operands. When we add a verify check for this, also
|
|
; require non-null in the assembler and rework this test to check for that ala
|
|
; test/Assembler/invalid-mdcompileunit-null-file.ll.
|
|
!named = !{!0}
|
|
!0 = !MDDerivedType(tag: DW_TAG_pointer_type, baseType: null)
|
|
|
|
; CHECK: !named = !{!0}
|
|
; CHECK: !0 = !MDDerivedType({{.*}}baseType: null{{.*}})
|