We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea310a6 commit edff46eCopy full SHA for edff46e
clang/lib/AST/ASTContext.cpp
@@ -5877,9 +5877,9 @@ ASTContext::getSubstBuiltinTemplatePack(const TemplateArgument &ArgPack) {
5877
Canon = getSubstBuiltinTemplatePack(CanonArgPack);
5878
// Refresh InsertPos, in case the recursive call above caused rehashing,
5879
// which would invalidate the bucket pointer.
5880
- if (auto *T =
5881
- SubstBuiltinTemplatePackTypes.FindNodeOrInsertPos(ID, InsertPos))
5882
- return QualType(T, 0);
+ [[maybe_unused]] const auto *Nothing =
+ SubstBuiltinTemplatePackTypes.FindNodeOrInsertPos(ID, InsertPos);
+ assert(!Nothing);
5883
}
5884
5885
auto *PackType = new (*this, alignof(SubstBuiltinTemplatePackType))
0 commit comments