Skip to content

Commit 1fb93b4

Browse files
committed
Fix the LLVMAttributeIndex enum.
1 parent 2cb7b01 commit 1fb93b4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/8.0/libLLVM_common.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -330,12 +330,12 @@ const LLVMFatalErrorHandler = Ptr{Cvoid}
330330
LLVMModuleFlagBehaviorAppendUnique = 5,
331331
)
332332

333-
# These are note defined in llvm-c
334-
# begin enum LLVMAttributeIndex
335-
const LLVMAttributeIndex = UInt32
336-
const LLVMAttributeReturnIndex = (UInt32)(0)
337-
const LLVMAttributeFunctionIndex = reinterpret(UInt32, Int32(-1))
338-
# end enum LLVMAttributeIndex
333+
# the following isn't defined as a regular enum in llvm-c, so Clang.jl fails to pick it up
334+
@cenum(LLVMAttributeIndex::Cuint,
335+
LLVMAttributeReturnIndex = 0,
336+
LLVMAttributeFunctionIndex = reinterpret(UInt32, Int32(-1))
337+
)
338+
339339
const LLVMDiagnosticHandler = Ptr{Cvoid}
340340
const LLVMYieldCallback = Ptr{Cvoid}
341341

0 commit comments

Comments
 (0)