Skip to content

Commit 1af0387

Browse files
committed
[ReconstructType] Remove a call to printf
1 parent 43f078e commit 1af0387

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/IDE/ReconstructType.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -915,10 +915,9 @@ GetKindAsDeclKind (Demangle::Node::Kind node_kind)
915915
case Demangle::Node::Kind::Protocol:
916916
return DeclKind::Protocol;
917917
default:
918-
printf ("Missing alias for %s.\n", SwiftDemangleNodeKindToCString(node_kind));
919-
assert (0);
918+
llvm_unreachable("Missing alias");
919+
// FIXME: can we 'log' SwiftDemangleNodeKindToCString(node_kind))
920920
}
921-
llvm_unreachable("Invalid case");
922921
}
923922

924923
// This should be called with a function type & its associated Decl. If the type is not a function type,

0 commit comments

Comments
 (0)