Skip to content

Commit 2445018

Browse files
committed
Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition
2 parents b1e3bcb + 6dc41d8 commit 2445018

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/SIL/SILInstructions.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,6 +1762,8 @@ OpenExistentialAddrInst::OpenExistentialAddrInst(
17621762
OpenExistentialRefInst::OpenExistentialRefInst(
17631763
SILDebugLocation DebugLoc, SILValue Operand, SILType Ty)
17641764
: UnaryInstructionBase(DebugLoc, Operand, Ty) {
1765+
assert(Operand->getType().isObject() && "Operand must be an object.");
1766+
assert(Ty.isObject() && "Result type must be an object type.");
17651767
}
17661768

17671769
OpenExistentialMetatypeInst::OpenExistentialMetatypeInst(

0 commit comments

Comments
 (0)