diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-18 06:11:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-18 06:11:23 +0000 |
commit | 5055730379ddae5bfb06ae43ebbe17d6736fe4c4 (patch) | |
tree | d705523678ad2a333fcd70b36e54fae84f3404b2 /llvm/lib/Bytecode | |
parent | 6fc7ff4db87ed2bcc21ff3e354c67d3407d33562 (diff) | |
download | bcm5719-llvm-5055730379ddae5bfb06ae43ebbe17d6736fe4c4.tar.gz bcm5719-llvm-5055730379ddae5bfb06ae43ebbe17d6736fe4c4.zip |
Dang, we were losing the Constant bit on globals. Fix this
llvm-svn: 885
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r-- | llvm/lib/Bytecode/Writer/Writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Writer/Writer.cpp b/llvm/lib/Bytecode/Writer/Writer.cpp index ffe67a32f50..87fed4d1b48 100644 --- a/llvm/lib/Bytecode/Writer/Writer.cpp +++ b/llvm/lib/Bytecode/Writer/Writer.cpp @@ -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. |