diff --git a/lib/Sema/TreeTransform.h b/lib/Sema/TreeTransform.h index 1ff6d5335d..eaf47a673b 100644 --- a/lib/Sema/TreeTransform.h +++ b/lib/Sema/TreeTransform.h @@ -4783,14 +4783,9 @@ TreeTransform::TransformImplicitValueInitExpr( template Sema::OwningExprResult TreeTransform::TransformVAArgExpr(VAArgExpr *E) { - TypeSourceInfo *TInfo; - { - // FIXME: Source location isn't quite accurate. - TemporaryBase Rebase(*this, E->getBuiltinLoc(), DeclarationName()); - TInfo = getDerived().TransformType(E->getWrittenTypeInfo()); - if (!TInfo) - return SemaRef.ExprError(); - } + TypeSourceInfo *TInfo = getDerived().TransformType(E->getWrittenTypeInfo()); + if (!TInfo) + return SemaRef.ExprError(); OwningExprResult SubExpr = getDerived().TransformExpr(E->getSubExpr()); if (SubExpr.isInvalid()) @@ -4858,18 +4853,14 @@ Sema::OwningExprResult TreeTransform::TransformTypesCompatibleExpr(TypesCompatibleExpr *E) { TypeSourceInfo *TInfo1; TypeSourceInfo *TInfo2; - { - // FIXME: Source location isn't quite accurate. - TemporaryBase Rebase(*this, E->getBuiltinLoc(), DeclarationName()); + + TInfo1 = getDerived().TransformType(E->getArgTInfo1()); + if (!TInfo1) + return SemaRef.ExprError(); - TInfo1 = getDerived().TransformType(E->getArgTInfo1()); - if (!TInfo1) - return SemaRef.ExprError(); - - TInfo2 = getDerived().TransformType(E->getArgTInfo2()); - if (!TInfo2) - return SemaRef.ExprError(); - } + TInfo2 = getDerived().TransformType(E->getArgTInfo2()); + if (!TInfo2) + return SemaRef.ExprError(); if (!getDerived().AlwaysRebuild() && TInfo1 == E->getArgTInfo1() &&