diff options
| author | Ted Kremenek <kremenek@apple.com> | 2008-10-17 22:23:12 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2008-10-17 22:23:12 +0000 |
| commit | 213873232d715ba55c4e49c88fd5958248a56dda (patch) | |
| tree | 8837bfc4a5965d15f696827f1b2993ed438b6b69 /clang/lib/Analysis/GRExprEngine.cpp | |
| parent | b35174727fc2d4fb09506d5c8b69d3cb1323001f (diff) | |
| download | bcm5719-llvm-213873232d715ba55c4e49c88fd5958248a56dda.tar.gz bcm5719-llvm-213873232d715ba55c4e49c88fd5958248a56dda.zip | |
When conjuring symbols to recover path-sensitivity, don't conjure symbols that represent an entire struct. We need to implement struct temporaries as an actual "region", and then bind symbols to the FieldRegion of those temporaries.
llvm-svn: 57739
Diffstat (limited to 'clang/lib/Analysis/GRExprEngine.cpp')
| -rw-r--r-- | clang/lib/Analysis/GRExprEngine.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp index bdf42e99c53..98e8427a69a 100644 --- a/clang/lib/Analysis/GRExprEngine.cpp +++ b/clang/lib/Analysis/GRExprEngine.cpp @@ -2038,8 +2038,10 @@ void GRExprEngine::VisitBinaryOperator(BinaryOperator* B, case BinaryOperator::Assign: { // EXPERIMENTAL: "Conjured" symbols. + // FIXME: Handle structs. + QualType T = RHS->getType(); - if (RightV.isUnknown()) { + if (RightV.isUnknown() && (T->isIntegerType() || Loc::IsLocType(T))) { unsigned Count = Builder->getCurrentBlockCount(); SymbolID Sym = SymMgr.getConjuredSymbol(B->getRHS(), Count); |

