OSDN Git Service

give PATypeHolder an explicit copy ctor which initializes the type pointer,
authorChris Lattner <sabre@nondot.org>
Tue, 29 Jun 2010 19:20:38 +0000 (19:20 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 29 Jun 2010 19:20:38 +0000 (19:20 +0000)
commit190a7f4a18dc909c8ec2dbb908a55196e7098d01
tree5f5f6493d520eaac77166e450baf700ab24cd812
parentd1303d2a66241c70e0e35dac371636c883235df8
give PATypeHolder an explicit copy ctor which initializes the type pointer,
and make PATypeHolder work with null pointers.

The implicitly generated one didn't work on numerous levels, but was still
accepted, allowing all sorts of bugs with default constructed pa type holders.

Previously, they "sort of" worked if they were default constructed and then
destructed.  Now they really work, and you can even default construct one,
then assign to it, amazing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107195 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/AbstractTypeUser.h
include/llvm/Type.h