From b918a936fb96e95b26953db887adc6ecfc0b99ad Mon Sep 17 00:00:00 2001 From: Patrick Quist Date: Thu, 30 Nov 2023 00:36:54 +0100 Subject: [PATCH] fix ldc llvmir (#5827) --- lib/compilers/ldc.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/compilers/ldc.ts b/lib/compilers/ldc.ts index 389a857ef97..74e503d484d 100644 --- a/lib/compilers/ldc.ts +++ b/lib/compilers/ldc.ts @@ -136,6 +136,7 @@ export class LDCCompiler extends BaseCompiler { // Override the IR file name method for LDC because the output file is different from clang. override getIrOutputFilename(inputFilename) { - return utils.changeExtension(inputFilename, '.ll'); + const outputFilename = this.getOutputFilename(path.dirname(inputFilename), this.outputFilebase); + return utils.changeExtension(outputFilename, '.ll'); } }