diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-02 17:45:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-02 17:45:06 +0000 |
commit | 182f660d8d9248e87994d3eefd8bfa86fdfb0fea (patch) | |
tree | c0e4b401ce517fe83fb1d1fa82808bc697af950a /clang/lib/Analysis/GRSimpleVals.cpp | |
parent | db5f1fa3d807f1777bd301a265905f03bd7a6354 (diff) | |
download | bcm5719-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.cpp | 2 |
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()); |