[PATCH v2 2/5] widl: Also allocate top-level pointers to arrays as on-stack in -Oicf mode.

Zebediah Figura z.figura12 at gmail.com
Wed May 29 00:24:06 CDT 2019


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47285
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 tools/widl/typegen.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index 91377123180..c710df17914 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -2132,6 +2132,7 @@ static unsigned int write_nonsimple_pointer(FILE *file, const attr_list_t *attrs
             case TGT_POINTER:
             case TGT_CTXT_HANDLE:
             case TGT_CTXT_HANDLE_POINTER:
+            case TGT_ARRAY:
                 flags |= FC_ALLOCED_ON_STACK;
                 break;
             case TGT_IFACE_POINTER:
-- 
2.21.0




More information about the wine-devel mailing list