Skip to content

Commit 71dbefa

Browse files
[Clang] Drop workaround for old gcc versions (#78803)
This workaround existed due to https://gcc.gnu.org/PR56135. The website says that the bug was fixed in GCC 4.8.0 and the latest host toolchain requirement says GCC 7.4. I think it would be very safe to drop this workaround.
1 parent 04c8558 commit 71dbefa

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

clang/lib/Sema/TreeTransform.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6089,12 +6089,11 @@ QualType
60896089
TreeTransform<Derived>::TransformFunctionProtoType(TypeLocBuilder &TLB,
60906090
FunctionProtoTypeLoc TL) {
60916091
SmallVector<QualType, 4> ExceptionStorage;
6092-
TreeTransform *This = this; // Work around gcc.gnu.org/PR56135.
60936092
return getDerived().TransformFunctionProtoType(
60946093
TLB, TL, nullptr, Qualifiers(),
60956094
[&](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);
60986097
});
60996098
}
61006099

@@ -13645,12 +13644,11 @@ TreeTransform<Derived>::TransformLambdaExpr(LambdaExpr *E) {
1364513644
auto TransformFunctionProtoTypeLoc =
1364613645
[this](TypeLocBuilder &TLB, FunctionProtoTypeLoc FPTL) -> QualType {
1364713646
SmallVector<QualType, 4> ExceptionStorage;
13648-
TreeTransform *This = this; // Work around gcc.gnu.org/PR56135.
1364913647
return this->TransformFunctionProtoType(
1365013648
TLB, FPTL, nullptr, Qualifiers(),
1365113649
[&](FunctionProtoType::ExceptionSpecInfo &ESI, bool &Changed) {
13652-
return This->TransformExceptionSpec(FPTL.getBeginLoc(), ESI,
13653-
ExceptionStorage, Changed);
13650+
return TransformExceptionSpec(FPTL.getBeginLoc(), ESI,
13651+
ExceptionStorage, Changed);
1365413652
});
1365513653
};
1365613654

0 commit comments

Comments
 (0)