summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExprCXX.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2012-01-25 04:35:06 +0000
committerEli Friedman <eli.friedman@gmail.com>2012-01-25 04:35:06 +0000
commit0ce4de4183f7ad907ace198c1d160765df09e262 (patch)
tree43a7a6340d8871169ffce0cebb05dfaa2c344f70 /clang/lib/Sema/SemaExprCXX.cpp
parent6601b550c0903369b3c65c686d222ebb59a9cb43 (diff)
downloadbcm5719-llvm-0ce4de4183f7ad907ace198c1d160765df09e262.tar.gz
bcm5719-llvm-0ce4de4183f7ad907ace198c1d160765df09e262.zip
Fix r148920 to what I actually meant to commit.
llvm-svn: 148921
Diffstat (limited to 'clang/lib/Sema/SemaExprCXX.cpp')
-rw-r--r--clang/lib/Sema/SemaExprCXX.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp
index 03ec8fbc094..2f8bf774313 100644
--- a/clang/lib/Sema/SemaExprCXX.cpp
+++ b/clang/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();
OpenPOWER on IntegriCloud