summaryrefslogtreecommitdiff
path: root/lib/Bytecode
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-18 06:11:23 +0000
committerChris Lattner <sabre@nondot.org>2001-10-18 06:11:23 +0000
commitb2c823d2be812a4ed9bcdc80bc2f6d5c1b062660 (patch)
tree470e757dcd77d157a099bf09503110c4669d4335 /lib/Bytecode
parent0eafc31684d6c512c6a56868031b8c1cc4ab4ed6 (diff)
downloadllvm-b2c823d2be812a4ed9bcdc80bc2f6d5c1b062660.tar.gz
llvm-b2c823d2be812a4ed9bcdc80bc2f6d5c1b062660.tar.bz2
llvm-b2c823d2be812a4ed9bcdc80bc2f6d5c1b062660.tar.xz
Dang, we were losing the Constant bit on globals. Fix this
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@885 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r--lib/Bytecode/Writer/Writer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp
index ffe67a32f5..87fed4d1b4 100644
--- a/lib/Bytecode/Writer/Writer.cpp
+++ b/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.