diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2012-01-25 04:35:06 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2012-01-25 04:35:06 +0000 |
commit | 8c9fe200890663e1026be25d66f0929caa87a0ca (patch) | |
tree | 80f2020494df1c0cfb35dc1547f20cdbc64385f5 /lib/Sema/SemaExprCXX.cpp | |
parent | e0dbedfdd1f4f57cc9e8fd594385cff961593014 (diff) |
Fix r148920 to what I actually meant to commit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148921 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprCXX.cpp')
-rw-r--r-- | lib/Sema/SemaExprCXX.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp index 03ec8fbc09..2f8bf77431 100644 --- a/lib/Sema/SemaExprCXX.cpp +++ b/lib/Sema/SemaExprCXX.cpp @@ -4404,6 +4404,7 @@ ExprResult Sema::BuildPseudoDestructorExpr(Expr *Base, bool HasTrailingLParen) { TypeSourceInfo *DestructedTypeInfo = Destructed.getTypeSourceInfo(); + QualType ObjectType; if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc)) return ExprError(); @@ -4508,6 +4509,7 @@ ExprResult Sema::ActOnPseudoDestructorExpr(Scope *S, Expr *Base, SecondTypeName.getKind() == UnqualifiedId::IK_Identifier) && "Invalid second type name in pseudo-destructor"); + QualType ObjectType; if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc)) return ExprError(); @@ -4635,7 +4637,7 @@ ExprResult Sema::ActOnPseudoDestructorExpr(Scope *S, Expr *Base, SourceLocation TildeLoc, const DeclSpec& DS, bool HasTrailingLParen) { - + QualType ObjectType; if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc)) return ExprError(); |