mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-16 02:42:22 -07:00
LLVM API: Fix compound literals with constant parameters to union fields
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user