diff options
| author | gingerBill <bill@gingerbill.org> | 2020-04-25 14:45:34 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-04-25 14:45:34 +0100 |
| commit | f63b9806d24d347ab4c351f87797bd23e2834b5d (patch) | |
| tree | ead903f64a0b15bb0fe49a0d539535b1444ce2a3 /src/types.cpp | |
| parent | 9409f53a9bbf4a057ac45ae34b42d78ae4178d63 (diff) | |
LLVM API: Fix compound literals with constant parameters to `union` fields
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |