1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-11 12:54:15 +02:00

BF_LinuxFixLinkage fix

This commit is contained in:
Brian Fiete 2025-03-20 09:40:25 -04:00
parent 4c067564ce
commit f9e9eddbc0

View file

@ -5481,17 +5481,15 @@ void BfIRCodeGen::HandleNextCmd()
{ {
if (insertBeforeInst != NULL) if (insertBeforeInst != NULL)
{ {
auto& dbgResult = mDIBuilder->insertDeclare(val, (llvm::DILocalVariable*)varInfo, mDIBuilder->createExpression(), auto dbgResult = mDIBuilder->insertDeclare(val, (llvm::DILocalVariable*)varInfo, mDIBuilder->createExpression(),
mIRBuilder->getCurrentDebugLocation(), insertBeforeInst); mIRBuilder->getCurrentDebugLocation(), insertBeforeInst);
bool isA = dbgResult.is<llvm::Instruction*>();
auto inst = dbgResult.get<llvm::Instruction*>(); auto inst = dbgResult.get<llvm::Instruction*>();
SetResult(curId, inst); SetResult(curId, inst);
} }
else else
{ {
auto& dbgResult = mDIBuilder->insertDeclare(val, (llvm::DILocalVariable*)varInfo, mDIBuilder->createExpression(), auto dbgResult = mDIBuilder->insertDeclare(val, (llvm::DILocalVariable*)varInfo, mDIBuilder->createExpression(),
mIRBuilder->getCurrentDebugLocation(), mIRBuilder->GetInsertBlock()); mIRBuilder->getCurrentDebugLocation(), mIRBuilder->GetInsertBlock());
bool isA = dbgResult.is<llvm::Instruction*>();
auto inst = dbgResult.get<llvm::Instruction*>(); auto inst = dbgResult.get<llvm::Instruction*>();
SetResult(curId, inst); SetResult(curId, inst);
} }
@ -6295,10 +6293,10 @@ int BF_LinuxFixLinkage()
llvm::MCContext* ctx = NULL; llvm::MCContext* ctx = NULL;
llvm::raw_pwrite_stream* stream = NULL; llvm::raw_pwrite_stream* stream = NULL;
createWasmStreamer(*ctx, NULL, NULL, NULL, false); createWasmStreamer(*ctx, NULL, NULL, NULL);
createMachOStreamer(*ctx, NULL, NULL, NULL, false, false, false); createMachOStreamer(*ctx, NULL, NULL, NULL, false, false);
createAsmStreamer(*ctx, NULL, false, false, NULL, NULL, NULL, false); createAsmStreamer(*ctx, NULL, NULL, NULL, NULL);
createELFStreamer(*ctx, NULL, NULL, NULL, false); createELFStreamer(*ctx, NULL, NULL, NULL);
return 0; return 0;
} }