Merge pull request #9318 from practicalswift/redundant-types-in-casts

[gardening] Remove redundant repetition of type names (DRY): RepeatedTypeName foo = dyn_cast<RepeatedTypeName>(bar)
This commit is contained in:
Michael Gottesman
2017-05-05 13:37:12 -07:00
committed by GitHub
122 changed files with 406 additions and 406 deletions

View File

@@ -3853,7 +3853,7 @@ class YamlGroupInputParser {
bool parseRoot(FileNameToGroupNameMap &Map, llvm::yaml::Node *Root,
StringRef ParentName) {
llvm::yaml::MappingNode *MapNode = dyn_cast<llvm::yaml::MappingNode>(Root);
auto *MapNode = dyn_cast<llvm::yaml::MappingNode>(Root);
if (!MapNode) {
return true;
}
@@ -3927,7 +3927,7 @@ public:
// The format is a map of ("group0" : ["file1", "file2"]), meaning all
// symbols from file1 and file2 belong to "group0".
llvm::yaml::MappingNode *Map = dyn_cast<llvm::yaml::MappingNode>(Root);
auto *Map = dyn_cast<llvm::yaml::MappingNode>(Root);
if (!Map) {
return true;
}