[NFCI] Fix unused variable warning with asserts off in clang/lib/Sema/TypeLocBuilder.cpp

This commit is contained in:
Jorge Gorbe Moya 2022-07-12 17:40:41 -07:00
parent bdc6974f92
commit fcbb4e1fa4
1 changed files with 1 additions and 2 deletions

View File

@ -156,8 +156,7 @@ TypeLoc TypeLocBuilder::pushImpl(QualType T, size_t LocalSize, unsigned LocalAli
Index -= LocalSize;
unsigned FDSz = TypeLoc::getFullDataSizeForType(T);
assert(Capacity - Index == FDSz &&
assert(Capacity - Index == TypeLoc::getFullDataSizeForType(T) &&
"incorrect data size provided to CreateTypeSourceInfo!");
return getTemporaryTypeLoc(T);