projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0eafc31
)
Dang, we were losing the Constant bit on globals. Fix this
author
Chris Lattner
<sabre@nondot.org>
Thu, 18 Oct 2001 06:11:23 +0000
(06:11 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 18 Oct 2001 06:11:23 +0000
(06:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@885
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Bytecode/Writer/Writer.cpp
patch
|
blob
|
history
diff --git
a/lib/Bytecode/Writer/Writer.cpp
b/lib/Bytecode/Writer/Writer.cpp
index ffe67a32f50126c65da3efa2a793a61b41f86615..87fed4d1b48493c7531f800647cce2000fe5025b 100644
(file)
--- 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.