diff options
author | Chris Lattner <sabre@nondot.org> | 2012-01-30 07:36:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-01-30 07:36:01 +0000 |
commit | 41b9920a1332eeeeda0ed03218d9efad641f5adf (patch) | |
tree | 91d3c4174e6dcbd88511df7db71e26f7b87cdce0 /lib/Bitcode/Writer | |
parent | babd5980d8a8b4aad9814212a269f6197ebf1f2e (diff) | |
download | external_llvm-41b9920a1332eeeeda0ed03218d9efad641f5adf.zip external_llvm-41b9920a1332eeeeda0ed03218d9efad641f5adf.tar.gz external_llvm-41b9920a1332eeeeda0ed03218d9efad641f5adf.tar.bz2 |
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.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp index f64df9e..d58f7cf 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) |