summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2015-08-19 02:21:12 +0000
committerDavide Italiano <davide@freebsd.org>2015-08-19 02:21:12 +0000
commit992196220a60a5afee8535fbd7e8c5e5227f244a (patch)
tree08f5fa8c9d8259e08cbef5770849f55728dc1b29 /clang/lib/Sema/SemaExpr.cpp
parentbdb5b2687a41adbc408451e1adca1bdf4d3104a0 (diff)
downloadbcm5719-llvm-992196220a60a5afee8535fbd7e8c5e5227f244a.tar.gz
bcm5719-llvm-992196220a60a5afee8535fbd7e8c5e5227f244a.zip
[SemaExpr] Re-enable missing assertion.
This has been disabled for a long time, but: 1) Initializers work (and apparently they're re reason why this was disabled). 2) various tests happen to hit this code path and the invariant seems to be always verified. Differential Revision: http://reviews.llvm.org/D12110 Reviewed by: rsmith llvm-svn: 245404
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index dd99ad2f0c0..0d3913448f3 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -5085,8 +5085,7 @@ ExprResult
Sema::ActOnCompoundLiteral(SourceLocation LParenLoc, ParsedType Ty,
SourceLocation RParenLoc, Expr *InitExpr) {
assert(Ty && "ActOnCompoundLiteral(): missing type");
- // FIXME: put back this assert when initializers are worked out.
- //assert((InitExpr != 0) && "ActOnCompoundLiteral(): missing expression");
+ assert(InitExpr && "ActOnCompoundLiteral(): missing expression");
TypeSourceInfo *TInfo;
QualType literalType = GetTypeFromParser(Ty, &TInfo);
OpenPOWER on IntegriCloud