aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/GRExprEngine.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-10-17 22:23:12 +0000
committerTed Kremenek <kremenek@apple.com>2008-10-17 22:23:12 +0000
commitfd30194a78e8cb6f2cb1138783f7e9d504864884 (patch)
tree7405f6c6a576c04b6c7f559ea73ff4e0cc83fe71 /lib/Analysis/GRExprEngine.cpp
parent662b71ee82339c67f2c3689196e716c6560cf925 (diff)
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRExprEngine.cpp')
-rw-r--r--lib/Analysis/GRExprEngine.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp
index bdf42e99c5..98e8427a69 100644
--- a/lib/Analysis/GRExprEngine.cpp
+++ b/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);