diff options
author | Anna Zaks <ganna@apple.com> | 2012-05-03 02:13:53 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-05-03 02:13:53 +0000 |
commit | da3960347a5d563d6746cb363b25466282a09ce3 (patch) | |
tree | fbd2adaa6c7c3133329ae639bce6a1d9f8442d34 /lib/StaticAnalyzer/Core/SValBuilder.cpp | |
parent | baeaa9ad120f60b1c5b6f1a84286b507dbe2b55d (diff) |
[analyzer] Do not assert on constructing SymSymExpr with diff types.
The resulting type info is stored in the SymSymExpr, so no reason not to
support construction of expression with different subexpression types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156051 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/SValBuilder.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/SValBuilder.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/Core/SValBuilder.cpp b/lib/StaticAnalyzer/Core/SValBuilder.cpp index d286f495cd..d005c2af96 100644 --- a/lib/StaticAnalyzer/Core/SValBuilder.cpp +++ b/lib/StaticAnalyzer/Core/SValBuilder.cpp @@ -61,7 +61,6 @@ NonLoc SValBuilder::makeNonLoc(const llvm::APSInt& lhs, NonLoc SValBuilder::makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op, const SymExpr *rhs, QualType type) { assert(lhs && rhs); - assert(haveSameType(lhs->getType(Context), rhs->getType(Context)) == true); assert(!Loc::isLocType(type)); return nonloc::SymbolVal(SymMgr.getSymSymExpr(lhs, op, rhs, type)); } |