Skip to content

Commit

Permalink
Fix #4585 (#4586)
Browse files Browse the repository at this point in the history
  • Loading branch information
OfekShilon authored and mattgodbolt committed Jan 24, 2023
1 parent 74e4439 commit 62cc8ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/base-compiler.ts
Expand Up @@ -2393,7 +2393,11 @@ export class BaseCompiler implements ICompiler {
.pipe(new compilerOptInfo.LLVMOptTransformer());

for await (const opt of optStream) {
if (opt.DebugLoc && opt.DebugLoc.File && opt.DebugLoc.File.includes(this.compileFilename)) {
if (
opt.DebugLoc &&
opt.DebugLoc.File &&
(opt.DebugLoc.File === '<stdin>' || opt.DebugLoc.File.includes(this.compileFilename))
) {
output.push(opt);
}
}
Expand Down

0 comments on commit 62cc8ca

Please sign in to comment.