mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
DebugInfo: Require non-null in DIBuilder::retainType()
Assert that a non-null value is being passed in. Note that I fixed the one offender in clang in r233443. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233445 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
292142ec8d
commit
6ed3a762fc
@ -509,7 +509,10 @@ DIType DIBuilder::createObjectPointerType(DIType Ty) {
|
||||
return createTypeWithFlags(VMContext, Ty, Flags);
|
||||
}
|
||||
|
||||
void DIBuilder::retainType(DIType T) { AllRetainTypes.emplace_back(T); }
|
||||
void DIBuilder::retainType(DIType T) {
|
||||
assert(T.get() && "Expected non-null type");
|
||||
AllRetainTypes.emplace_back(T);
|
||||
}
|
||||
|
||||
DIBasicType DIBuilder::createUnspecifiedParameter() {
|
||||
return DIBasicType();
|
||||
|
Loading…
Reference in New Issue
Block a user