llvm.org GIT mirror llvm / f8d8b2b
add an assertion to catch a null PATypeHolder, patch by Erick Tryzelaar git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47563 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 12 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
356356 Ty->removeAbstractTypeUser(User);
357357 }
358358
359 // Define inline methods for PATypeHolder...
359 // Define inline methods for PATypeHolder.
360360
361361 inline void PATypeHolder::addRef() {
362 assert(Ty && "Type Holder has a null type!");
362363 if (Ty->isAbstract())
363364 Ty->addRef();
364365 }