forked from OSchip/llvm-project
Add an assert to CGDebugInfo::getTypeOrNull
This commit is contained in:
parent
9b222b108a
commit
f4cec703ec
|
@ -3132,6 +3132,7 @@ static QualType UnwrapTypeForDebugInfo(QualType T, const ASTContext &C) {
|
|||
}
|
||||
|
||||
llvm::DIType *CGDebugInfo::getTypeOrNull(QualType Ty) {
|
||||
assert(Ty == UnwrapTypeForDebugInfo(Ty, CGM.getContext()));
|
||||
auto It = TypeCache.find(Ty.getAsOpaquePtr());
|
||||
if (It != TypeCache.end()) {
|
||||
// Verify that the debug info still exists.
|
||||
|
|
Loading…
Reference in New Issue