Roundtrip the inalloca bit on allocas through bitcode
authorReid Kleckner <reid@kleckner.net>
Wed, 16 Jul 2014 01:34:27 +0000 (01:34 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 16 Jul 2014 01:34:27 +0000 (01:34 +0000)
commit56b56ea15bd8687d9a9f1279c91eb0939cee7a56
treedb18a11c0d573cda0b929752f346dce0905a72aa
parentb4db99c76ab3b0eed1a90b142aa420960adb2ae4
Roundtrip the inalloca bit on allocas through bitcode

This was an oversight in the original support.  As it is, I stuffed this
bit into the alignment.  The alignment is stored in log2 form, so it
doesn't need more than 5 bits, given that Value::MaximumAlignment is 1
<< 29.

Reviewers: nicholas

Differential Revision: http://reviews.llvm.org/D3943

llvm-svn: 213118
llvm/include/llvm/Bitcode/LLVMBitCodes.h
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/test/Bitcode/inalloca.ll [new file with mode: 0644]