summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-12 19:45:49 +0000
committerChris Lattner <sabre@nondot.org>2008-11-12 19:45:49 +0000
commite7d1cdb6fd67397d3c3649b259ef43b0d2deb61d (patch)
tree2fc7187d86d0e3fe985d2bbd6c34685fa47671d9 /clang/lib/Sema/SemaDecl.cpp
parent1781080c34f7213c56fd6ac2f1a46b7a02b309ca (diff)
downloadbcm5719-llvm-e7d1cdb6fd67397d3c3649b259ef43b0d2deb61d.tar.gz
bcm5719-llvm-e7d1cdb6fd67397d3c3649b259ef43b0d2deb61d.zip
fix PR3048. I'm going to do some more work before closing it off and
adding a testcase. llvm-svn: 59156
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index aaceb4f5591..3484849161f 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -2536,6 +2536,7 @@ Sema::DeclTy *Sema::ActOnField(Scope *S,
} else {
// FIXME: This diagnostic needs work
Diag(Loc, diag::err_typecheck_illegal_vla, Loc);
+ T = Context.IntTy;
InvalidDecl = true;
}
}
OpenPOWER on IntegriCloud