[opaque pointer types] Use the pointee type loaded from bitcode when constructing...
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 17 Apr 2015 19:56:21 +0000 (19:56 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 17 Apr 2015 19:56:21 +0000 (19:56 +0000)
commit0f0d21e869726c947c958702f6db000e016203ce
tree05296a298f2bbac633a1a95d76fae6cc58cc229f
parent35df664ee64465bcad08259ef4d2c716ba7c34ff
[opaque pointer types] Use the pointee type loaded from bitcode when constructing a LoadInst

Now (with a few carefully placed suppressions relating to general type
serialization, etc) we can round trip a simple load through bitcode and
textual IR without calling getElementType on a PointerType.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235221 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Instructions.h
lib/Bitcode/Reader/BitcodeReader.cpp
lib/IR/Instructions.cpp