aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/GRExprEngine.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-30 21:45:55 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-30 21:45:55 +0000
commita084bb667db31158278248f249cd302281c7da59 (patch)
tree5904dd2282c3874d4749a95923fb64bbe8f6d431 /lib/Analysis/GRExprEngine.cpp
parentf342d1887c9b2ef24d029c0546d536e2277b9976 (diff)
Add workaround for __builtin_offsetof in the static analyzer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50500 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRExprEngine.cpp')
-rw-r--r--lib/Analysis/GRExprEngine.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp
index 7506c80f5e..7bfcaab112 100644
--- a/lib/Analysis/GRExprEngine.cpp
+++ b/lib/Analysis/GRExprEngine.cpp
@@ -1481,6 +1481,12 @@ void GRExprEngine::VisitUnaryOperator(UnaryOperator* U, NodeTy* Pred,
return;
}
+
+ case UnaryOperator::OffsetOf:
+ // FIXME: Just report "Unknown" known for OffsetOf.
+ Dst.Add(Pred);
+ return;
+
case UnaryOperator::Plus: assert (!asLVal); // FALL-THROUGH.
case UnaryOperator::Extension: {