mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
LLVM 13 fixes for debug locations and sret/byval
This commit is contained in:
parent
3cd91832a8
commit
390f27c072
2 changed files with 20 additions and 22 deletions
|
@ -148,7 +148,8 @@ bool BfModule::AddDeferredCallEntry(BfDeferredCallEntry* deferredCallEntry, BfSc
|
|||
mBfIRBuilder->SetInsertPointAtStart(mCurMethodState->mIRInitBlock);
|
||||
|
||||
auto scopeHead = &mCurMethodState->mHeadScope;
|
||||
mBfIRBuilder->SetCurrentDebugLocation(mCurFilePosition.mCurLine + 1, 0, scopeHead->mDIScope, BfIRMDNode());
|
||||
if (scopeHead->mDIScope)
|
||||
mBfIRBuilder->SetCurrentDebugLocation(mCurFilePosition.mCurLine + 1, 0, scopeHead->mDIScope, BfIRMDNode());
|
||||
|
||||
if (WantsLifetimes())
|
||||
mBfIRBuilder->CreateLifetimeStart(listEntry->mDynCallTail);
|
||||
|
@ -164,7 +165,8 @@ bool BfModule::AddDeferredCallEntry(BfDeferredCallEntry* deferredCallEntry, BfSc
|
|||
|
||||
mBfIRBuilder->SetInsertPoint(mCurMethodState->mIRInitBlock);
|
||||
|
||||
mBfIRBuilder->SetCurrentDebugLocation(mCurFilePosition.mCurLine + 1, 0, scopeHead->mDIScope, BfIRMDNode());
|
||||
if (scopeHead->mDIScope)
|
||||
mBfIRBuilder->SetCurrentDebugLocation(mCurFilePosition.mCurLine + 1, 0, scopeHead->mDIScope, BfIRMDNode());
|
||||
mBfIRBuilder->CreateStatementStart();
|
||||
|
||||
//TODO: Make this work for LLVM - we need a proper debug location
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue