From 3048d5da46112a2c6c312922ed3f024e14b8a79f Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 25 Jan 2019 08:08:01 -0800 Subject: Fixup handling of empty structs in function return types and parameters. (#796) * Fixup handling of empty structs in function return types and parameters. * Bug fix in legalizeFunc() * More comprehensive empty struct test * Fix `legalizeFieldExtract` for empty struct field. * Add empty struct handling for construct inst --- tests/compute/empty-struct2.slang.expected.txt | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/compute/empty-struct2.slang.expected.txt (limited to 'tests/compute/empty-struct2.slang.expected.txt') diff --git a/tests/compute/empty-struct2.slang.expected.txt b/tests/compute/empty-struct2.slang.expected.txt new file mode 100644 index 000000000..e8c63f701 --- /dev/null +++ b/tests/compute/empty-struct2.slang.expected.txt @@ -0,0 +1,4 @@ +0 +1 +2 +3 \ No newline at end of file -- cgit v1.2.3