aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-09-10 19:17:48 +0000
committerSteve Naroff <snaroff@apple.com>2008-09-10 19:17:48 +0000
commit61f40a2b67fc2046768e14f66b617e564cbcc3d8 (patch)
treeb833b53b529ae89986252440b5274a8fbaa844d8 /lib/Sema/SemaChecking.cpp
parent1f3b0d5ccabbc47aef525baec10c15d9fd1c6236 (diff)
More semantic analysis for blocks...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56064 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaChecking.cpp')
-rw-r--r--lib/Sema/SemaChecking.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp
index 8c59039ac2..00b469b7c0 100644
--- a/lib/Sema/SemaChecking.cpp
+++ b/lib/Sema/SemaChecking.cpp
@@ -717,7 +717,7 @@ Sema::CheckReturnStackAddr(Expr *RetValExp, QualType lhsType,
DR->getDecl()->getIdentifier()->getName(),
RetValExp->getSourceRange());
- if (BlockExpr *C = dyn_cast_or_null<BlockExpr>(EvalAddr(RetValExp)))
+ if (BlockExpr *C = dyn_cast_or_null<BlockExpr>(RetValExp))
Diag(C->getLocStart(), diag::err_ret_local_block,
C->getSourceRange());
}
@@ -797,7 +797,7 @@ static DeclRefExpr* EvalAddr(Expr *E) {
assert (Base->getType()->isPointerType());
return EvalAddr(Base);
}
-
+
// For conditional operators we need to see if either the LHS or RHS are
// valid DeclRefExpr*s. If one of them is valid, we return it.
case Stmt::ConditionalOperatorClass: {