forked from OSchip/llvm-project
[NFCI] Fix unused variable warning with asserts off in clang/lib/Sema/TypeLocBuilder.cpp
This commit is contained in:
parent
bdc6974f92
commit
fcbb4e1fa4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue