diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-06-23 05:23:38 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-06-23 05:23:38 +0000 |
commit | 087d6c20876ced37d544552b43cf33332687f074 (patch) | |
tree | 0fc631d79e5ddebd05b83346289db57ae4dfd98b /lib/Analysis/SVals.cpp | |
parent | 5636a3b6ece2c1f413464b72545e08eb0b7f06e4 (diff) |
Instead of setting the default value of the array region, bind the rest of the
array elements to 0 explicitly. Create 0 values with the element type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/SVals.cpp')
-rw-r--r-- | lib/Analysis/SVals.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Analysis/SVals.cpp b/lib/Analysis/SVals.cpp index 77c3c8f772..e33275199a 100644 --- a/lib/Analysis/SVals.cpp +++ b/lib/Analysis/SVals.cpp @@ -264,6 +264,10 @@ NonLoc ValueManager::makeNonLoc(SymbolRef sym) { return nonloc::SymbolVal(sym); } +NonLoc ValueManager::makeNonLoc(const APSInt& V) { + return nonloc::ConcreteInt(BasicVals.getValue(V)); +} + NonLoc ValueManager::makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op, const APSInt& v, QualType T) { // The Environment ensures we always get a persistent APSInt in |