File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5226,8 +5226,8 @@ ASTContext::getPredefinedSugarType(PredefinedSugarType::Kind KD) const {
52265226
52275227 assert(KD != Kind::Max);
52285228
5229- auto *Target = PredefinedSugarTypes[llvm::to_underlying(KD)];
5230- if ( Target != nullptr)
5229+ if ( auto *Target = PredefinedSugarTypes[llvm::to_underlying(KD)];
5230+ Target != nullptr)
52315231 return QualType(Target, 0);
52325232
52335233 auto getCanonicalType = [](const ASTContext &Ctx, Kind KDI) -> QualType {
@@ -5252,7 +5252,7 @@ ASTContext::getPredefinedSugarType(PredefinedSugarType::Kind KD) const {
52525252 PredefinedSugarType(KD, &Idents.get(PredefinedSugarType::getName(KD)),
52535253 getCanonicalType(*this, static_cast<Kind>(KD)));
52545254 Types.push_back(New);
5255- Target = New;
5255+ PredefinedSugarTypes[llvm::to_underlying(KD)] = New;
52565256 return QualType(New, 0);
52575257}
52585258
You can’t perform that action at this time.
0 commit comments