Forbid arrays of function-type and structures with function-typed fields.
commitb1208609ee4d18b2c0adaf860b72d0b2d5fd43d4
authorNick Lewycky <nicholas@mxc.ca>
Tue, 15 Sep 2009 06:28:26 +0000 (15 06:28 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 15 Sep 2009 06:28:26 +0000 (15 06:28 +0000)
treeac4c1236a79a5cd2d0b7d1461e3b887a25a78c31
parentf0ecef80afbd600d9004952bce40b55da78b4a78
Forbid arrays of function-type and structures with function-typed fields.

While I'm there, change code that does:
  SomeTy == Type::getFooType(Context)
into:
  SomeTy->getTypeID() == FooTyID
to decrease the amount of useless type creation which may involve locking, etc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81846 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/Type.cpp
test/Other/2009-09-14-function-elements.ll [new file with mode: 0644]