Deserialize swift3_migration attribute with an empty "renamed" string.

This commit is contained in:
Doug Gregor
2016-01-14 16:36:50 -08:00
parent 3331f3b153
commit 4ce77cb39f
3 changed files with 5 additions and 1 deletions

View File

@@ -766,6 +766,8 @@ ConfigParserState swift::operator!(ConfigParserState Result) {
StringRef swift::parseDeclName(StringRef name,
SmallVectorImpl<StringRef> &argumentLabels,
bool &isFunctionName) {
if (name.empty()) return "";
if (name.back() != ')') {
isFunctionName = false;
if (Lexer::isIdentifier(name) && name != "_")