summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2008-02-15 19:53:52 +0000
committerEli Friedman <eli.friedman@gmail.com>2008-02-15 19:53:52 +0000
commit5c9490924c3e4fd944d49fc47d6a90333d2185bd (patch)
treeae1f5adeea99f235f41e01a65d2729e94a25c2c3
parentb26be3d0535ba82c22deac439656bdb766b2c764 (diff)
downloadbcm5719-llvm-5c9490924c3e4fd944d49fc47d6a90333d2185bd.tar.gz
bcm5719-llvm-5c9490924c3e4fd944d49fc47d6a90333d2185bd.zip
Don't call non-existent method... sorry about the spam; the fix seemed
trivial, but I forgot that method doesn't exist yet. llvm-svn: 47175
-rw-r--r--clang/Sema/SemaDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Sema/SemaDecl.cpp b/clang/Sema/SemaDecl.cpp
index 137a188fbbd..8f1085c0ccd 100644
--- a/clang/Sema/SemaDecl.cpp
+++ b/clang/Sema/SemaDecl.cpp
@@ -897,7 +897,7 @@ Sema::DeclTy *Sema::FinalizeDeclaratorGroup(Scope *S, DeclTy *group) {
// C99 6.7.5.2p2: If an identifier is declared to be an object with
// static storage duration, it shall not have a variable length array.
if ((FVD || BVD) && IDecl->getStorageClass() == VarDecl::Static) {
- if (T->isVariableArrayType()) {
+ if (T->getAsVariableArrayType()) {
Diag(IDecl->getLocation(), diag::err_typecheck_illegal_vla);
IDecl->setInvalidDecl();
}
OpenPOWER on IntegriCloud