Skip to content

Commit 817b1be

Browse files
author
git apple-llvm automerger
committed
Merge commit 'e58dcf135f3a' from llvm.org/main into next
2 parents 8d08ec8 + e58dcf1 commit 817b1be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/Sema/SemaTemplateInstantiateDecl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5184,6 +5184,7 @@ void Sema::InstantiateFunctionDefinition(SourceLocation PointOfInstantiation,
51845184

51855185
ParmVarDecl *Parm = Function->getParamDecl(0);
51865186
TypeSourceInfo *NewParmSI = IR.TransformType(Parm->getTypeSourceInfo());
5187+
assert(NewParmSI && "Type transformation failed.");
51875188
Parm->setType(NewParmSI->getType());
51885189
Parm->setTypeSourceInfo(NewParmSI);
51895190
};

0 commit comments

Comments
 (0)