summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/GRSimpleVals.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-02 17:45:06 +0000
committerChris Lattner <sabre@nondot.org>2008-04-02 17:45:06 +0000
commit182f660d8d9248e87994d3eefd8bfa86fdfb0fea (patch)
treec0e4b401ce517fe83fb1d1fa82808bc697af950a /clang/lib/Analysis/GRSimpleVals.cpp
parentdb5f1fa3d807f1777bd301a265905f03bd7a6354 (diff)
downloadbcm5719-llvm-182f660d8d9248e87994d3eefd8bfa86fdfb0fea.tar.gz
bcm5719-llvm-182f660d8d9248e87994d3eefd8bfa86fdfb0fea.zip
simplify some code by using PointerLikeType.
llvm-svn: 49101
Diffstat (limited to 'clang/lib/Analysis/GRSimpleVals.cpp')
-rw-r--r--clang/lib/Analysis/GRSimpleVals.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/GRSimpleVals.cpp b/clang/lib/Analysis/GRSimpleVals.cpp
index 0c62ae70c35..9a0d63e808b 100644
--- a/clang/lib/Analysis/GRSimpleVals.cpp
+++ b/clang/lib/Analysis/GRSimpleVals.cpp
@@ -356,7 +356,7 @@ RVal GRSimpleVals::EvalCast(GRExprEngine& Eng, NonLVal X, QualType T) {
RVal GRSimpleVals::EvalCast(GRExprEngine& Eng, LVal X, QualType T) {
- if (T->isPointerType() || T->isReferenceType() || T->isObjCQualifiedIdType())
+ if (T->isPointerLikeType() || T->isObjCQualifiedIdType())
return X;
assert (T->isIntegerType());
OpenPOWER on IntegriCloud