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.

llvm-svn: 80780
This commit is contained in:
Torok Edwin 2009-09-02 12:23:05 +00:00
parent f55a8cb89c
commit 82131d6ad7
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ void DerivedType::dropAllTypeUses() {
tmp = AlwaysOpaqueTy;
if (!tmp) {
tmp = OpaqueType::get(getContext());
PATypeHolder* tmp2 = new PATypeHolder(AlwaysOpaqueTy);
PATypeHolder* tmp2 = new PATypeHolder(tmp);
sys::MemoryFence();
AlwaysOpaqueTy = tmp;
Holder = tmp2;