mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-15 07:31:26 -07:00
Add ODIN_LLVM_MINIMUM_VERSION_12
This commit is contained in:
@@ -2065,7 +2065,7 @@ LLVMAttributeRef lb_create_enum_attribute_with_type(LLVMContextRef ctx, char con
|
||||
unsigned kind = 0;
|
||||
String s = make_string_c(name);
|
||||
|
||||
#if (LLVM_VERSION_MAJOR > 12 || (LLVM_VERSION_MAJOR == 12 && (LLVM_VERSION_MINOR > 0 || LLVM_VERSION_PATCH >= 1)))
|
||||
#if ODIN_LLVM_MINIMUM_VERSION_12
|
||||
kind = LLVMGetEnumAttributeKindForName(name, s.len);
|
||||
GB_ASSERT_MSG(kind != 0, "unknown attribute: %s", name);
|
||||
return LLVMCreateTypeAttribute(ctx, kind, type);
|
||||
|
||||
Reference in New Issue
Block a user