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 | 5d917075fd86131abecbb27e9ddb8703d4eb2ae3 (patch) | |
tree | 8bbee7d8df8a152d08769f1bb35759244148c0b1 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 2a7df51ea2a27b1b940577e02d379a76a587bba0 (diff) | |
download | bcm5719-llvm-5d917075fd86131abecbb27e9ddb8703d4eb2ae3.tar.gz bcm5719-llvm-5d917075fd86131abecbb27e9ddb8703d4eb2ae3.zip |
fix a major oversight that is breaking some llvm-test tests.
llvm-svn: 149230
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index f64df9e9ba1..d58f7cf73df 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/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) |