You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -326,13 +326,13 @@ function ConstantStruct(value::T, name=String(nameof(T)); ctx::Context,
326
326
ConstantStruct(constants; ctx, packed)
327
327
elseifhaskey(types(ctx), name)
328
328
typ =types(ctx)[name]
329
-
ifcollect(elements(typ)) !=llvmtype.(constants)
330
-
throw(ArgumentError("Cannot create struct $name {$(join(llvmtype.(constants), ", "))} as it is already defined in this context as {$(join(elements(typ), ", "))}."))
329
+
ifcollect(elements(typ)) !=value_type.(constants)
330
+
throw(ArgumentError("Cannot create struct $name {$(join(value_type.(constants), ", "))} as it is already defined in this context as {$(join(elements(typ), ", "))}."))
0 commit comments