Multiple changes ...

* Use getVoidPtrType helper
* Replace #define with constexpr
This commit is contained in:
liushuyu 2024-03-26 14:48:36 -06:00
parent 8ae2634fae
commit fc4d884d2d
No known key found for this signature in database
GPG key ID: 23D1CE4534419437
9 changed files with 20 additions and 23 deletions

View file

@ -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) {