Skip to content

Commit 7285a9b

Browse files
committed
SIL: Basic block argument type should not contain type parameters
1 parent 63afeb4 commit 7285a9b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/SIL/IR/SILArgument.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ SILArgument::SILArgument(ValueKind subClassKind,
3737
sharedUInt8().SILArgument.reborrow = reborrow;
3838
sharedUInt8().SILArgument.pointerEscape = pointerEscape;
3939
inputParentBlock->insertArgument(inputParentBlock->args_end(), this);
40+
ASSERT(!type.hasTypeParameter());
4041
}
4142

4243
SILFunction *SILArgument::getFunction() {

0 commit comments

Comments
 (0)