diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-28 02:26:45 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-28 02:26:45 +0000 |
commit | ce2b983425bb470bd5bf80a17ebc5d6c429c7332 (patch) | |
tree | 3c8a1b35447312735505020004bb8c57201f3058 /llvm/lib/IR/Verifier.cpp | |
parent | 50b0956754ea437b8b4df3a53a1950ab9f987a0d (diff) | |
download | bcm5719-llvm-ce2b983425bb470bd5bf80a17ebc5d6c429c7332.tar.gz bcm5719-llvm-ce2b983425bb470bd5bf80a17ebc5d6c429c7332.zip |
DebugInfo: Fix testcases with invalid MDSubprogram nodes
Fix testcases that don't pass the verifier after a WIP patch to check
`MDSubprogram` operands more effectively. I found the following issues:
- When `isDefinition: false`, the `variables:` field might point at
`!{i32 786468}`, or at a tuple that pointed at an empty tuple with
the comment "previously: invalid DW_TAG_base_type" (I vaguely recall
adding those comments during an upgrade script). In these cases, I
just dropped the array.
- The `variables:` field might point at something like `!{!{!8}}`,
where `!8` was an `MDLocation`. I removed the extra layer of
indirection.
- Invalid `type:` (not an `MDSubroutineType`).
llvm-svn: 233466
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
0 files changed, 0 insertions, 0 deletions