mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-30 08:44:48 +00:00
Dang, we were losing the Constant bit on globals. Fix this
llvm-svn: 885
This commit is contained in:
parent
b3e1e7eae0
commit
f790ec066e
@ -123,7 +123,7 @@ void BytecodeWriter::outputModuleInfoBlock(const Module *M) {
|
||||
|
||||
// Fields: bit0 = isConstant, bit1 = hasInitializer, bit2+ = slot#
|
||||
unsigned oSlot = ((unsigned)Slot << 2) | (GV->hasInitializer() << 1) |
|
||||
isa<ConstPoolVal>(GV);
|
||||
GV->isConstant();
|
||||
output_vbr(oSlot, Out);
|
||||
|
||||
// If we have an initializer, output it now.
|
||||
|
Loading…
x
Reference in New Issue
Block a user