diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-02-15 12:28:27 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-02-15 12:28:27 +0000 |
commit | d868856b0578b588e280ab92d8774e49f45c0f05 (patch) | |
tree | da2238e58eceff511ca22457a80ca1d404ff43e1 | |
parent | 3c2b3170041f69a92904e3bab9b6d654eaf260ac (diff) |
Remove unnecessary references to VariableArrayType from Analysis.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47157 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Analysis/GRExprEngine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Analysis/GRExprEngine.cpp b/Analysis/GRExprEngine.cpp index bbf06d92fc..5702198b38 100644 --- a/Analysis/GRExprEngine.cpp +++ b/Analysis/GRExprEngine.cpp @@ -452,7 +452,7 @@ void GRExprEngine::VisitSizeOfAlignOfTypeExpr(SizeOfAlignOfTypeExpr* S, QualType T = S->getArgumentType(); // FIXME: Add support for VLAs. - if (isa<VariableArrayType>(T.getTypePtr())) + if (!T.getTypePtr()->isConstantSizeType()) return; SourceLocation L = S->getExprLoc(); @@ -574,7 +574,7 @@ void GRExprEngine::VisitUnaryOperator(UnaryOperator* U, QualType T = U->getSubExpr()->getType(); // FIXME: Add support for VLAs. - if (isa<VariableArrayType>(T.getTypePtr())) + if (!T.getTypePtr()->isConstantSizeType()) return; SourceLocation L = U->getExprLoc(); |