mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 10:57:35 +03:00
Fix LLVM 13 deprecation messages during build
This commit is contained in:
parent
75b67452cb
commit
7b6810b01b
10 changed files with 72 additions and 30 deletions
|
@ -164,7 +164,11 @@ LLFunction *build_module_reference_and_ctor(const char *moduleMangle,
|
|||
gIR->DBuilder.EmitModuleCTor(ctor, fname.c_str());
|
||||
|
||||
// get current beginning
|
||||
LLValue *curbeg = builder.CreateLoad(mref, "current");
|
||||
LLValue *curbeg = builder.CreateLoad(
|
||||
#if LDC_LLVM_VER >= 800
|
||||
modulerefPtrTy,
|
||||
#endif
|
||||
mref, "current");
|
||||
|
||||
// put current beginning as the next of this one
|
||||
LLValue *gep = builder.CreateStructGEP(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue