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 | 9da5bb07567df9a6e62cafde16897aba647fc084 (patch) | |
tree | 2c8792b62cba5767fde2337fed96311b849211e9 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 3e0fbafab2a8e968bdba9fbbef2e6881f3babf15 (diff) | |
download | bcm5719-llvm-9da5bb07567df9a6e62cafde16897aba647fc084.tar.gz bcm5719-llvm-9da5bb07567df9a6e62cafde16897aba647fc084.zip |
Bitcode support for allocas with arbitrary array size types.
llvm-svn: 104915
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 d91696f0e0a..860b7e9a68e 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/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; |