diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2009-07-04 13:58:54 +0000 | 
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2009-07-04 13:58:54 +0000 | 
| commit | 5362a71c02e7d448a8ce98cf00c47e353fba5d04 (patch) | |
| tree | 8ddfe382e1c6d590dc240e76f7cd45cea5c78e24 /include/clang/Analysis/PathSensitive/ValueManager.h | |
| parent | 4ebdf5c4f587daef4e0be499802eac3a7a49bf2f (diff) | |
Diffstat (limited to 'include/clang/Analysis/PathSensitive/ValueManager.h')
| -rw-r--r-- | include/clang/Analysis/PathSensitive/ValueManager.h | 11 | 
1 files changed, 8 insertions, 3 deletions
| diff --git a/include/clang/Analysis/PathSensitive/ValueManager.h b/include/clang/Analysis/PathSensitive/ValueManager.h index de318a0f03e8..36d1df2150df 100644 --- a/include/clang/Analysis/PathSensitive/ValueManager.h +++ b/include/clang/Analysis/PathSensitive/ValueManager.h @@ -67,12 +67,17 @@ public:                                            const void* SymbolTag = 0) {          return SymMgr.getConjuredSymbol(E, VisitCount, SymbolTag);    } -   +    /// makeZeroVal - Construct an SVal representing '0' for the specified type.    SVal makeZeroVal(QualType T); -  /// GetRegionValueSymbolVal - make a unique symbol for value of R. -  SVal getRegionValueSymbolVal(const MemRegion* R, QualType T = QualType()); +  /// getRegionValueSymbolVal - make a unique symbol for value of R. +  SVal getRegionValueSymbolVal(const MemRegion *R, QualType T = QualType()); +   +  SVal getRegionValueSymbolValOrUnknown(const MemRegion *R, QualType T) { +    return SymMgr.canSymbolicate(T) ? getRegionValueSymbolVal(R, T)  +                                    : UnknownVal();     +  }    SVal getConjuredSymbolVal(const Expr *E, unsigned Count);      SVal getConjuredSymbolVal(const Expr* E, QualType T, unsigned Count); | 
