summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorAbramo Bagnara <abramo.bagnara@gmail.com>2012-01-07 10:52:36 +0000
committerAbramo Bagnara <abramo.bagnara@gmail.com>2012-01-07 10:52:36 +0000
commit1cd8368eb2559035adadc83f66101df13becf4a9 (patch)
tree5d5226559de814872af5fc225083f8f3416189de /clang/lib/Sema/SemaDecl.cpp
parente57e752b71f0254e697156ed8c5c15040f53e6d6 (diff)
downloadbcm5719-llvm-1cd8368eb2559035adadc83f66101df13becf4a9.tar.gz
bcm5719-llvm-1cd8368eb2559035adadc83f66101df13becf4a9.zip
Fixed TypeofExpr AST and code generation.
llvm-svn: 147730
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index d1bf3db19ca..d80f22f7fe7 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -2481,25 +2481,6 @@ Decl *Sema::ParsedFreeStandingDeclSpec(Scope *S, AccessSpecifier AS,
return TagD;
}
-/// ActOnVlaStmt - This rouine if finds a vla expression in a decl spec.
-/// builds a statement for it and returns it so it is evaluated.
-StmtResult Sema::ActOnVlaStmt(const DeclSpec &DS) {
- StmtResult R;
- if (DS.getTypeSpecType() == DeclSpec::TST_typeofExpr) {
- Expr *Exp = DS.getRepAsExpr();
- QualType Ty = Exp->getType();
- if (Ty->isPointerType()) {
- do
- Ty = Ty->getAs<PointerType>()->getPointeeType();
- while (Ty->isPointerType());
- }
- if (Ty->isVariableArrayType()) {
- R = ActOnExprStmt(MakeFullExpr(Exp));
- }
- }
- return R;
-}
-
/// We are trying to inject an anonymous member into the given scope;
/// check if there's an existing declaration that can't be overloaded.
///
OpenPOWER on IntegriCloud