VMCore: add assert for miscompile
authorDylan Noblesmith <nobled@dreamwidth.org>
Sat, 31 Dec 2011 13:58:58 +0000 (13:58 +0000)
committerDylan Noblesmith <nobled@dreamwidth.org>
Sat, 31 Dec 2011 13:58:58 +0000 (13:58 +0000)
commitccc9a59614554bb91a932e64e64b9cc19e748442
tree049adb384ccc75620c3cc9b9055b16cb038683bc
parentce8524c0160787fc727c16816979302df42b914a
VMCore: add assert for miscompile

See PR11652. Trying to add this assert to
setSubclassData() itself actually prevented
the miscompile entirely, so it has to be here.

This makes the source of the bug more obvious
than the other asserts triggering later on did.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147390 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/Type.cpp