diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-11-13 06:10:40 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-11-13 06:10:40 +0000 |
commit | 062e2f9a0ecccfdb6c8be8d797b66abca8dfbfbc (patch) | |
tree | dbcc8a8bd662dfe7bf8fbb2ffecbd626663c3a4b /lib/Analysis/CFRefCount.cpp | |
parent | a6afa768aa7bd3102a2807aa720917e4a1771e4e (diff) |
GRExprEngine/CFRefCount/GRSimpleVals: We don't do any special handling (yet) of vector types. Add explicit checks that when we process integers that they really are scalars.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59225 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | lib/Analysis/CFRefCount.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index b33a7ca5ab..8c16c9fd6b 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -1605,7 +1605,7 @@ void CFRefCount::EvalSummary(ExplodedNodeSet<GRState>& Dst, QualType T = R->getType(Ctx); // FIXME: handle structs. - if (T->isIntegerType() || Loc::IsLocType(T)) { + if (Loc::IsLocType(T) || (T->isIntegerType() && T->isScalarType())) { SymbolID NewSym = Eng.getSymbolManager().getConjuredSymbol(*I, T, Count); @@ -1669,7 +1669,7 @@ void CFRefCount::EvalSummary(ExplodedNodeSet<GRState>& Dst, QualType T = Ex->getType(); - if (T->isIntegerType() || Loc::IsLocType(T)) { + if (Loc::IsLocType(T) || (T->isIntegerType() && T->isScalarType())) { unsigned Count = Builder.getCurrentBlockCount(); SymbolID Sym = Eng.getSymbolManager().getConjuredSymbol(Ex, Count); |