From f63b9806d24d347ab4c351f87797bd23e2834b5d Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 25 Apr 2020 14:45:34 +0100 Subject: LLVM API: Fix compound literals with constant parameters to `union` fields --- src/types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/types.cpp') diff --git a/src/types.cpp b/src/types.cpp index 1590d0a43..2b708af7a 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -1742,7 +1742,7 @@ bool elem_type_can_be_constant(Type *t) { if (t == t_invalid) { return false; } - if (is_type_any(t) || is_type_union(t)) { + if (is_type_any(t) || is_type_union(t) || is_type_raw_union(t)) { return false; } return true; -- cgit v1.2.3