From f74acc7669a585f83ee2f4f51a89a7bf59f085a0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 14 Oct 2004 02:31:35 +0000 Subject: [PATCH] Today is not my day. Fix broken # git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16967 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Writer/Writer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp index ce6d08a5c03..18cd60be44a 100644 --- a/lib/Bytecode/Writer/Writer.cpp +++ b/lib/Bytecode/Writer/Writer.cpp @@ -896,7 +896,7 @@ void BytecodeWriter::outputModuleInfoBlock(const Module *M) { // Fields: bit0 = isConstant, bit1 = hasInitializer, bit2-4=Linkage, // bit5+ = Slot # for type - unsigned oSlot = ((unsigned)Slot << 6) | (getEncodedLinkage(I) << 2) | + unsigned oSlot = ((unsigned)Slot << 5) | (getEncodedLinkage(I) << 2) | (I->hasInitializer() << 1) | (unsigned)I->isConstant(); output_vbr(oSlot ); -- 2.11.0