]> granicus.if.org Git - llvm/commit
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)
commit55a421f98dbaa5ef179323bc4c78e601adf745e4
treee9f0358d475014c22979b02a2d962bc01bfa6fb3
parent99ecd0bf0862d0355b2a8feadab66ddb29df0b0f
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213118 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Bitcode/LLVMBitCodes.h
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
test/Bitcode/inalloca.ll [new file with mode: 0644]