aboutsummaryrefslogtreecommitdiff
path: root/lib/Checker/GRExprEngine.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-07-17 01:28:55 +0000
committerTed Kremenek <kremenek@apple.com>2010-07-17 01:28:55 +0000
commitcb07788e20f63ee61862af1c5ee711d9f4c5bf0e (patch)
tree44a5e6bf6a063abc7509ec89fb87d69387403c66 /lib/Checker/GRExprEngine.cpp
parentaf6c314e6501f6f2fe247c5a18f77ba803c2e3c3 (diff)
Fix '<rdar://problem/8202272> __imag passed non-complex should not crash' by removing a bogus assertion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108602 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/GRExprEngine.cpp')
-rw-r--r--lib/Checker/GRExprEngine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Checker/GRExprEngine.cpp b/lib/Checker/GRExprEngine.cpp
index 1424820f3b..26b5801068 100644
--- a/lib/Checker/GRExprEngine.cpp
+++ b/lib/Checker/GRExprEngine.cpp
@@ -2835,8 +2835,7 @@ void GRExprEngine::VisitUnaryOperator(UnaryOperator* U, ExplodedNode* Pred,
continue;
}
- // For all other types, UnaryOperator::Float returns 0.
- assert (Ex->getType()->isIntegerType());
+ // For all other types, UnaryOperator::Imag returns 0.
const GRState* state = GetState(*I);
SVal X = ValMgr.makeZeroVal(Ex->getType());
MakeNode(Dst, U, *I, state->BindExpr(U, X));