summaryrefslogtreecommitdiff
path: root/lib/Bitcode/Writer
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-01-30 07:36:01 +0000
committerChris Lattner <sabre@nondot.org>2012-01-30 07:36:01 +0000
commit41b9920a1332eeeeda0ed03218d9efad641f5adf (patch)
tree91d3c4174e6dcbd88511df7db71e26f7b87cdce0 /lib/Bitcode/Writer
parentbabd5980d8a8b4aad9814212a269f6197ebf1f2e (diff)
downloadllvm-41b9920a1332eeeeda0ed03218d9efad641f5adf.tar.gz
llvm-41b9920a1332eeeeda0ed03218d9efad641f5adf.tar.bz2
llvm-41b9920a1332eeeeda0ed03218d9efad641f5adf.tar.xz
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
Diffstat (limited to 'lib/Bitcode/Writer')
-rw-r--r--lib/Bitcode/Writer/BitcodeWriter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp
index f64df9e9ba..d58f7cf73d 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<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)