From 062e2f9a0ecccfdb6c8be8d797b66abca8dfbfbc Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 13 Nov 2008 06:10:40 +0000 Subject: 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 --- lib/Analysis/CFRefCount.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Analysis/CFRefCount.cpp') 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& 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& 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); -- cgit v1.2.3