Browse Source

BF_LinuxFixLinkage fix

Brian Fiete 4 months ago
parent
commit
f9e9eddbc0
1 changed files with 6 additions and 8 deletions
  1. 6 8
      IDEHelper/Compiler/BfIRCodeGen.cpp

+ 6 - 8
IDEHelper/Compiler/BfIRCodeGen.cpp

@@ -5481,17 +5481,15 @@ void BfIRCodeGen::HandleNextCmd()
 			{
 				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);
-					bool isA = dbgResult.is<llvm::Instruction*>();
 					auto inst = dbgResult.get<llvm::Instruction*>();
 					SetResult(curId, inst);
 				}
 				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());
-					bool isA = dbgResult.is<llvm::Instruction*>();
 					auto inst = dbgResult.get<llvm::Instruction*>();
 					SetResult(curId, inst);
 				}
@@ -6295,10 +6293,10 @@ int BF_LinuxFixLinkage()
 	llvm::MCContext* ctx = NULL;
 	llvm::raw_pwrite_stream* stream = NULL;
 
-	createWasmStreamer(*ctx, NULL, NULL, NULL, false);
-	createMachOStreamer(*ctx, NULL, NULL, NULL, false, false, false);
-	createAsmStreamer(*ctx, NULL, false, false, NULL, NULL, NULL, false);
-	createELFStreamer(*ctx, NULL, NULL, NULL, false);
+	createWasmStreamer(*ctx, NULL, NULL, NULL);
+	createMachOStreamer(*ctx, NULL, NULL, NULL, false, false);
+	createAsmStreamer(*ctx, NULL, NULL, NULL, NULL);
+	createELFStreamer(*ctx, NULL, NULL, NULL);
 
 	return 0;
 }