diff options
author | Patrick Quist <partouf@gmail.com> | 2023-11-30 00:36:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-30 00:36:54 +0100 |
commit | b918a936fb96e95b26953db887adc6ecfc0b99ad (patch) | |
tree | 68d1d7c9a83c19fa8e5f49560efb86e98abcf9f2 | |
parent | b134451b7d33b8431779326ee2be51728b755c28 (diff) | |
download | compiler-explorer-gh-9781.tar.gz compiler-explorer-gh-9781.zip |
fix ldc llvmir (#5827)gh-9781
-rw-r--r-- | lib/compilers/ldc.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/compilers/ldc.ts b/lib/compilers/ldc.ts index 389a857ef..74e503d48 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'); } } |