mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-30 15:10:59 +03:00
Multiple changes ...
* Use getVoidPtrType helper * Replace #define with constexpr
This commit is contained in:
parent
8ae2634fae
commit
fc4d884d2d
9 changed files with 20 additions and 23 deletions
|
@ -115,7 +115,7 @@ void emitLLVMUsedArray(IRState &irs) {
|
|||
return;
|
||||
}
|
||||
|
||||
auto *i8PtrType = LDC_getInt8PtrTy(irs.context());
|
||||
auto *i8PtrType = getVoidPtrType(irs.context());
|
||||
|
||||
// Convert all elements to i8* (the expected type for llvm.used)
|
||||
for (auto &elem : irs.usedArray) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue