Hi,<br><br>I am using current SVN and in the last week or so, something causing the <br>following assertion failure has changed. <br><br>   void llvm::PATypeHolder::addRef(): Assertion `Ty && "Type Holder has a null type!"' failed.<br>
<br>The corresponding stack trace is:<br><br>#0  0x000000339ec332f5 in raise () from /lib64/libc.so.6<br>#1  0x000000339ec34b20 in abort () from /lib64/libc.so.6<br>#2  0x000000339ec2c2fa in __assert_fail () from /lib64/libc.so.6<br>
#3  0x0000000000ba35e9 in llvm::PATypeHolder::addRef (this=0x1d7a740) at /home/maurice/installation/llvm-dev/include/llvm/Type.h:417<br>#4  0x0000000000dd872d in llvm::PATypeHolder::PATypeHolder(const struct llvm::Type *) (this=0x1d7a740, ty=0x0)<br>
    at /home/maurice/installation/llvm-dev/include/llvm/AbstractTypeUser.h:143<br>#5  0x00000000015828d8 in llvm::DerivedType::dropAllTypeUses (this=0x1d777d0) at Type.cpp:469<br>#6  0x0000000001584b1f in llvm::DerivedType::unlockedRefineAbstractTypeTo (this=0x1d777d0, NewType=0x1d5b050) at Type.cpp:1454<br>
#7  0x000000000158b84c in llvm::TypeMap<llvm::PointerValType, llvm::PointerType>::RefineAbstractType (this=0x1d5afe0, Ty=0x1d777d0,<br>    OldType=0x1d77780, NewType=0x1d54190) at Type.cpp:884<br>#8  0x0000000001584fe2 in llvm::PointerType::refineAbstractType (this=0x1d777d0, OldType=0x1d77780, NewType=0x1d54190) at Type.cpp:1575<br>
#9  0x0000000001584b8f in llvm::DerivedType::unlockedRefineAbstractTypeTo (this=0x1d77780, NewType=0x1d54190) at Type.cpp:1473<br>#10 0x0000000001584cba in llvm::DerivedType::refineAbstractTypeTo (this=0x1d77780, NewType=0x1d54190) at Type.cpp:1493<br>
#11 0x0000000000deedda in llvm::BitcodeReader::ParseTypeTable (this=0x1d75530) at BitcodeReader.cpp:580<br>#12 0x0000000000df230e in llvm::BitcodeReader::ParseModule (this=0x1d75530, ModuleID="receptacle-plug-test.bc") at BitcodeReader.cpp:1142<br>
#13 0x0000000000df39b6 in llvm::BitcodeReader::ParseBitcode (this=0x1d75530) at BitcodeReader.cpp:1389<br>#14 0x0000000000df8431 in llvm::getBitcodeModuleProvider (Buffer=0x1d754c0, Context=@0x7fffffffdd90, ErrMsg=0x7fffffffd3f0)<br>
    at BitcodeReader.cpp:2084<br>#15 0x0000000000df84e3 in llvm::ParseBitcodeFile (Buffer=0x1d754c0, Context=@0x7fffffffdd90, ErrMsg=0x7fffffffd3f0) at BitcodeReader.cpp:2102<br>#16 0x0000000000de1b76 in llvm::Linker::LoadObject (this=0x7fffffffdc60, FN=@0x1d6a330) at Linker.cpp:106<br>
#17 0x0000000000dd03eb in llvm::Linker::LinkInFile (this=0x7fffffffdc60, File=@0x1d6a330, is_native=@0x7fffffffd64b) at LinkItems.cpp:196<br>#18 0x0000000000dd07ea in llvm::Linker::LinkInFiles (this=0x7fffffffdc60, Files=std::vector of length 1, capacity 1 = {...}) at LinkItems.cpp:235<br>
#19 0x0000000000b8a904 in main (argc=2, argv=0x7fffffffe098, env=0x7fffffffe0b0) at main.cpp:209<br><br><br>If I do _not_ include the following line at the beginning of my program<br><br>        llvm::llvm_start_multithreaded(); <br>
<br>then all is well.<br><br>Does anyone have a clue what is going on?<br><br>Thanks,<br><br>Kind regards,<br>Maurice<br>