mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
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
This commit is contained in:
parent
2e68b6f52d
commit
f8d8b2b53a
@ -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