From: Chris Lattner Date: Mon, 30 Jan 2012 07:36:01 +0000 (+0000) Subject: fix a major oversight that is breaking some llvm-test tests. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=41b9920a1332eeeeda0ed03218d9efad641f5adf;p=oota-llvm.git fix a major oversight that is breaking some llvm-test tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149230 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp index f64df9e9ba1..d58f7cf73df 100644 --- a/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -900,6 +900,7 @@ static void WriteConstants(unsigned FirstVal, unsigned LastVal, AbbrevToUse = CString7Abbrev; } else if (const ConstantDataSequential *CDS = dyn_cast(C)) { + Code = bitc::CST_CODE_DATA; Type *EltTy = CDS->getType()->getElementType(); if (isa(EltTy)) { for (unsigned i = 0, e = CDS->getNumElements(); i != e; ++i)