Skip to content

Commit 75fe659

Browse files
committed
SILGen: Fix a warning
1 parent 2920b4f commit 75fe659

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILGen/SILGenApply.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ class SILGenApply : public Lowering::ExprVisitor<SILGenApply> {
907907

908908
// Enum case constructor references are open-coded.
909909
if (auto *eed = dyn_cast<EnumElementDecl>(e->getDecl())) {
910-
setCallee(Callee::forEnumElement(SGF, SILDeclRef(e->getDecl()), subs, e));
910+
setCallee(Callee::forEnumElement(SGF, SILDeclRef(eed), subs, e));
911911
return;
912912
}
913913

0 commit comments

Comments
 (0)