File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -489,8 +489,8 @@ ModuleImport::processAliasScopeMetadata(const llvm::MDNode *node) {
489489 if (verifySelfRef (scope)) {
490490 idAttr = DistinctAttr::create (builder.getUnitAttr ());
491491 } else {
492- auto Name = cast<llvm::MDString>(scope->getOperand (0 ));
493- idAttr = builder.getStringAttr (Name ->getString ());
492+ auto name = cast<llvm::MDString>(scope->getOperand (0 ));
493+ idAttr = builder.getStringAttr (name ->getString ());
494494 }
495495
496496 auto aliasScopeOp = builder.getAttr <AliasScopeAttr>(
Original file line number Diff line number Diff line change @@ -1732,11 +1732,10 @@ ModuleTranslation::getOrCreateAliasScope(AliasScopeAttr aliasScopeAttr) {
17321732 // Self-reference for uniqueness.
17331733 llvm::Metadata *replacement;
17341734 if (auto stringAttr =
1735- dyn_cast<StringAttr>(aliasScopeAttr.getDomain ().getId ())) {
1735+ dyn_cast<StringAttr>(aliasScopeAttr.getDomain ().getId ()))
17361736 replacement = llvm::MDString::get (ctx, stringAttr.getValue ());
1737- } else {
1737+ else
17381738 replacement = domainIt->second ;
1739- }
17401739 domainIt->second ->replaceOperandWith (0 , replacement);
17411740 }
17421741 // Convert the scope metadata node.
@@ -1750,11 +1749,10 @@ ModuleTranslation::getOrCreateAliasScope(AliasScopeAttr aliasScopeAttr) {
17501749 scopeIt->second = llvm::MDNode::get (ctx, operands);
17511750 // Self-reference for uniqueness.
17521751 llvm::Metadata *replacement;
1753- if (auto stringAttr = dyn_cast<StringAttr>(aliasScopeAttr.getId ())) {
1752+ if (auto stringAttr = dyn_cast<StringAttr>(aliasScopeAttr.getId ()))
17541753 replacement = llvm::MDString::get (ctx, stringAttr.getValue ());
1755- } else {
1754+ else
17561755 replacement = scopeIt->second ;
1757- }
17581756 scopeIt->second ->replaceOperandWith (0 , replacement);
17591757 return scopeIt->second ;
17601758}
You can’t perform that action at this time.
0 commit comments