diff options
Diffstat (limited to 'cpp/src/slice2swift/SwiftUtil.cpp')
-rw-r--r-- | cpp/src/slice2swift/SwiftUtil.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/slice2swift/SwiftUtil.cpp b/cpp/src/slice2swift/SwiftUtil.cpp index 1b402f4d846..2c66616da49 100644 --- a/cpp/src/slice2swift/SwiftUtil.cpp +++ b/cpp/src/slice2swift/SwiftUtil.cpp @@ -254,7 +254,7 @@ SwiftGenerator::typeToString(const TypePtr& type, const ContainedPtr& toplevel, return ""; } - string t = "???"; + string t = ""; // // The current module were the type is being used // @@ -292,6 +292,11 @@ SwiftGenerator::typeToString(const TypePtr& type, const ContainedPtr& toplevel, { t = getUnqualified(getAbsoluteImpl(cont), currentModule); } + else + { + assert(false); + t = "???"; + } if(!nonnull && (optional || isNullableType(type))) { |