[cfe-commits] r47157 - /cfe/trunk/Analysis/GRExprEngine.cpp
Eli Friedman
eli.friedman at gmail.com
Fri Feb 15 04:28:45 PST 2008
Author: efriedma
Date: Fri Feb 15 06:28:27 2008
New Revision: 47157
URL: http://llvm.org/viewvc/llvm-project?rev=47157&view=rev
Log:
Remove unnecessary references to VariableArrayType from Analysis.
Modified:
cfe/trunk/Analysis/GRExprEngine.cpp
Modified: cfe/trunk/Analysis/GRExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Analysis/GRExprEngine.cpp?rev=47157&r1=47156&r2=47157&view=diff
==============================================================================
--- cfe/trunk/Analysis/GRExprEngine.cpp (original)
+++ cfe/trunk/Analysis/GRExprEngine.cpp Fri Feb 15 06:28:27 2008
@@ -452,7 +452,7 @@
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 @@
QualType T = U->getSubExpr()->getType();
// FIXME: Add support for VLAs.
- if (isa<VariableArrayType>(T.getTypePtr()))
+ if (!T.getTypePtr()->isConstantSizeType())
return;
SourceLocation L = U->getExprLoc();
More information about the cfe-commits
mailing list