mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-14 09:25:25 +00:00
add an assertion to catch a null PATypeHolder, patch by Erick Tryzelaar
llvm-svn: 47563
This commit is contained in:
parent
012abf0109
commit
6292d580de
@ -357,9 +357,10 @@ inline void PATypeHandle::removeUser() {
|
||||
Ty->removeAbstractTypeUser(User);
|
||||
}
|
||||
|
||||
// Define inline methods for PATypeHolder...
|
||||
// Define inline methods for PATypeHolder.
|
||||
|
||||
inline void PATypeHolder::addRef() {
|
||||
assert(Ty && "Type Holder has a null type!");
|
||||
if (Ty->isAbstract())
|
||||
Ty->addRef();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user