mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user