Opaque types didn't work if llvm_is_multithreaded().
authorTorok Edwin <edwintorok@gmail.com>
Wed, 2 Sep 2009 12:23:05 +0000 (12:23 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Wed, 2 Sep 2009 12:23:05 +0000 (12:23 +0000)
commit254bb831d826e5a7295b7f271bbac77be9044d63
tree0d8c0e62e3b2681bcbdbf2addc7ad21783619a0a
parentf11e88337f6224513d2086d6968e1045dbcc9714
Opaque types didn't work if llvm_is_multithreaded().
AlwaysOpaqueTy is always NULL at this point, and it causes an assertion failure.
Fix it by using the just constructed tmp instead.

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