HomePhabricator

Merging r351910:

Description

Merging r351910:

r351910 | cuviper | 2019-01-23 01:53:22 +0100 (Wed, 23 Jan 2019) | 18 lines

[CodeView] Allow empty types in member functions

Summary:
CodeViewDebug::lowerTypeMemberFunction used to default to a Void
return type if the function's type array was empty. After D54667, it
started blindly indexing the 0th item for the return type, which fails
in getOperand for empty arrays if assertions are enabled.

This patch restores the Void return type for empty type arrays, and
adds a test generated by Rust in line-only debuginfo mode.

Reviewers: zturner, rnk

Reviewed By: rnk

Subscribers: hiraditya, JDevlieghere, llvm-commits

Differential Revision: https://reviews.llvm.org/D57070

Details

Committed
hansJan 29 2019, 1:21 PM
Reviewer
rnk
Differential Revision
D57070: [CodeView] Allow empty types in member functions
Parents
rL352545: [AArch64][GlobalISel] Unmerge into scalars from a vector should use FPR bank.
Branches
Unknown
Tags
Unknown