summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-25 19:11:05 +0000
committerChris Lattner <sabre@nondot.org>2009-04-25 19:11:05 +0000
commita69b07636b541b6e01ee7550aad55e566b07637c (patch)
tree212792b440e2303cccc862dc13c59ed8ceae2511 /clang/lib
parent0e14997758d18a3dfa8c74e66b6709424cb26b33 (diff)
downloadbcm5719-llvm-a69b07636b541b6e01ee7550aad55e566b07637c.tar.gz
bcm5719-llvm-a69b07636b541b6e01ee7550aad55e566b07637c.zip
remove a fixme that is already done.
llvm-svn: 70064
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index fc5b678f21b..474670dbb7a 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -4495,17 +4495,13 @@ Sema::ActOnStmtExpr(SourceLocation LPLoc, StmtArg substmt,
CompoundStmt *Compound = cast<CompoundStmt>(SubStmt);
bool isFileScope = getCurFunctionOrMethodDecl() == 0;
- if (isFileScope) {
+ if (isFileScope)
return ExprError(Diag(LPLoc, diag::err_stmtexpr_file_scope));
- }
// FIXME: there are a variety of strange constraints to enforce here, for
// example, it is not possible to goto into a stmt expression apparently.
// More semantic analysis is needed.
- // FIXME: the last statement in the compount stmt has its value used. We
- // should not warn about it being unused.
-
// If there are sub stmts in the compound stmt, take the type of the last one
// as the type of the stmtexpr.
QualType Ty = Context.VoidTy;
OpenPOWER on IntegriCloud