summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Bytecode/Reader/ReaderWrappers.cpp')
-rw-r--r--llvm/lib/Bytecode/Reader/ReaderWrappers.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp b/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
index 1ea5c0262f1..956d1ede696 100644
--- a/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
+++ b/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
@@ -19,6 +19,7 @@
#include "llvm/Instructions.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/System/MappedFile.h"
+#include "llvm/System/Program.h"
#include <cerrno>
#include <iostream>
#include <memory>
@@ -132,6 +133,7 @@ namespace {
BytecodeStdinReader::BytecodeStdinReader( BytecodeHandler* H )
: BytecodeReader(H)
{
+ sys::Program::ChangeStdinToBinary();
char Buffer[4096*4];
// Read in all of the data from stdin, we cannot mmap stdin...
OpenPOWER on IntegriCloud