diff --git a/lib/SIL/SIL.cpp b/lib/SIL/SIL.cpp index 6878fb201a6..a8993094a16 100644 --- a/lib/SIL/SIL.cpp +++ b/lib/SIL/SIL.cpp @@ -52,7 +52,9 @@ SILConstant::SILConstant(ValueDecl *vd, SILConstant::Kind kind, : loc(vd), kind(kind), isObjC(isObjC) { unsigned naturalUncurryLevel; - + + // FIXME: restructure to use a "switch". + if (auto *func = dyn_cast(vd)) { assert(!func->isGetterOrSetter() && "cannot create a Func SILConstant for a property accessor");