Commit 51205fb
authored
Enable ChangeStdin/outToBinary for llvm-dis on Windows. (#4509)
This will fix issue when read input from stdin.
Without ChangeStdinToBinary, llvm-dis will get wrong size for stdin input in some case. That will cause 'Invalid bitcode size' error when parse bitcode.
MSFT_SUPPORTS_TEXTMODE_STREAMS was added a long time ago during initial file system virtualization work, the API should hit these functions under virtualized paths (and testing so far confirms this). We should keep an eye out still for a regression where the global stdin or stdout mode is unexpectedly overridden when using the API.1 parent 7cdeb95 commit 51205fb
1 file changed
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
473 | | - | |
474 | 473 | | |
475 | 474 | | |
476 | 475 | | |
477 | | - | |
478 | 476 | | |
479 | 477 | | |
480 | 478 | | |
481 | 479 | | |
482 | | - | |
483 | 480 | | |
484 | 481 | | |
485 | 482 | | |
486 | | - | |
487 | 483 | | |
488 | 484 | | |
489 | 485 | | |
| |||
0 commit comments