mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-17 00:24:05 +00:00
LLVM API: Fix compound literals with constant parameters to union fields
This commit is contained in:
@@ -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