diff options
| author | Dan Gohman <gohman@apple.com> | 2010-05-28 01:38:28 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-05-28 01:38:28 +0000 |
| commit | f7bf15c3da2886b9acb16c617de5c34d9becfe58 (patch) | |
| tree | 2a4c3cda184cb381c9fe70da3489f7c0a7315694 /lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | 02cab3c57755b1c9c0f4da6344b8102230608ee8 (diff) | |
| download | external_llvm-f7bf15c3da2886b9acb16c617de5c34d9becfe58.zip external_llvm-f7bf15c3da2886b9acb16c617de5c34d9becfe58.tar.gz external_llvm-f7bf15c3da2886b9acb16c617de5c34d9becfe58.tar.bz2 | |
Bitcode support for allocas with arbitrary array size types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104915 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer/BitcodeWriter.cpp')
| -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 d91696f..860b7e9 100644 --- a/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -1114,6 +1114,7 @@ static void WriteInstruction(const Instruction &I, unsigned InstID, case Instruction::Alloca: Code = bitc::FUNC_CODE_INST_ALLOCA; Vals.push_back(VE.getTypeID(I.getType())); + Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); Vals.push_back(VE.getValueID(I.getOperand(0))); // size. Vals.push_back(Log2_32(cast<AllocaInst>(I).getAlignment())+1); break; |
