fix a major oversight that is breaking some llvm-test tests.
authorChris Lattner <sabre@nondot.org>
Mon, 30 Jan 2012 07:36:01 +0000 (07:36 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 30 Jan 2012 07:36:01 +0000 (07:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149230 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bitcode/Writer/BitcodeWriter.cpp

index f64df9e9ba1f7e3e10fac11cf554d5261da860b8..d58f7cf73df8c14bbb0d9a3950312ab7bc0ec1bd 100644 (file)
@@ -900,6 +900,7 @@ static void WriteConstants(unsigned FirstVal, unsigned LastVal,
         AbbrevToUse = CString7Abbrev;
     } else if (const ConstantDataSequential *CDS = 
                   dyn_cast<ConstantDataSequential>(C)) {
+      Code = bitc::CST_CODE_DATA;
       Type *EltTy = CDS->getType()->getElementType();
       if (isa<IntegerType>(EltTy)) {
         for (unsigned i = 0, e = CDS->getNumElements(); i != e; ++i)