@@ -6089,12 +6089,11 @@ QualType
6089
6089
TreeTransform<Derived>::TransformFunctionProtoType(TypeLocBuilder &TLB,
6090
6090
FunctionProtoTypeLoc TL) {
6091
6091
SmallVector<QualType, 4> ExceptionStorage;
6092
- TreeTransform *This = this; // Work around gcc.gnu.org/PR56135.
6093
6092
return getDerived().TransformFunctionProtoType(
6094
6093
TLB, TL, nullptr, Qualifiers(),
6095
6094
[&](FunctionProtoType::ExceptionSpecInfo &ESI, bool &Changed) {
6096
- return This-> getDerived().TransformExceptionSpec(
6097
- TL.getBeginLoc(), ESI, ExceptionStorage, Changed);
6095
+ return getDerived().TransformExceptionSpec(TL.getBeginLoc(), ESI,
6096
+ ExceptionStorage, Changed);
6098
6097
});
6099
6098
}
6100
6099
@@ -13645,12 +13644,11 @@ TreeTransform<Derived>::TransformLambdaExpr(LambdaExpr *E) {
13645
13644
auto TransformFunctionProtoTypeLoc =
13646
13645
[this](TypeLocBuilder &TLB, FunctionProtoTypeLoc FPTL) -> QualType {
13647
13646
SmallVector<QualType, 4> ExceptionStorage;
13648
- TreeTransform *This = this; // Work around gcc.gnu.org/PR56135.
13649
13647
return this->TransformFunctionProtoType(
13650
13648
TLB, FPTL, nullptr, Qualifiers(),
13651
13649
[&](FunctionProtoType::ExceptionSpecInfo &ESI, bool &Changed) {
13652
- return This-> TransformExceptionSpec(FPTL.getBeginLoc(), ESI,
13653
- ExceptionStorage, Changed);
13650
+ return TransformExceptionSpec(FPTL.getBeginLoc(), ESI,
13651
+ ExceptionStorage, Changed);
13654
13652
});
13655
13653
};
13656
13654
0 commit comments