Also gate AllocatedPointer and AllocAlign definitions by LLVM_VERSION_GE
Fixes a warning:
warning: llvm-wrapper/RustWrapper.cpp:159:11: warning: enumeration values 'AllocatedPointer' and 'AllocAlign' not handled in switch [-Wswitch]
warning: switch (Kind) {
warning: ^
Which was fall out from 130a1df71e
.
This commit is contained in:
parent
110777b60c
commit
eca274a1f9
1 changed files with 2 additions and 0 deletions
|
@ -87,8 +87,10 @@ enum LLVMRustAttribute {
|
||||||
NoCfCheck = 35,
|
NoCfCheck = 35,
|
||||||
ShadowCallStack = 36,
|
ShadowCallStack = 36,
|
||||||
AllocSize = 37,
|
AllocSize = 37,
|
||||||
|
#if LLVM_VERSION_GE(15, 0)
|
||||||
AllocatedPointer = 38,
|
AllocatedPointer = 38,
|
||||||
AllocAlign = 39,
|
AllocAlign = 39,
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct OpaqueRustString *RustStringRef;
|
typedef struct OpaqueRustString *RustStringRef;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue