diff options
Diffstat (limited to 'lib/Bytecode/Writer/Writer.cpp')
| -rw-r--r-- | lib/Bytecode/Writer/Writer.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp index 03a6c4668e..f97d7e232b 100644 --- a/lib/Bytecode/Writer/Writer.cpp +++ b/lib/Bytecode/Writer/Writer.cpp @@ -43,8 +43,8 @@ BytecodeWriter::BytecodeWriter(std::deque<unsigned char> &o, const Module *M)    // Emit the top level CLASS block.    BytecodeBlock ModuleBlock(BytecodeFormat::Module, Out); -  bool isBigEndian = true; -  bool hasLongPointers = true; +  bool isBigEndian = M->isBigEndian(); +  bool hasLongPointers = M->has64BitPointers();    // Output the version identifier... we are currently on bytecode version #2    unsigned Version = (2 << 4) | isBigEndian | (hasLongPointers << 1);  | 
