diff options
author | Alexey Samsonov <samsonov@google.com> | 2012-07-17 07:46:40 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2012-07-17 07:46:40 +0000 |
commit | 19e88c02889017753747e64606d9b1ad0041f11a (patch) | |
tree | 3e1f7807816a38d914d64b2b219adfd6fdee3d6c | |
parent | 20b802d186dfc5db9b4a9ce83e9f31fa5aa4efcc (diff) |
Fixup for r160345 - uintptr_t is not always unsigned
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160349 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h b/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h index d173fac8af..ee818b356b 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h @@ -327,20 +327,20 @@ public: Loc getLoc() const { const std::pair<SVal, uintptr_t> *D = - static_cast<const std::pair<SVal, unsigned> *>(Data); + static_cast<const std::pair<SVal, uintptr_t> *>(Data); return cast<Loc>(D->first); } const Loc& getPersistentLoc() const { const std::pair<SVal, uintptr_t> *D = - static_cast<const std::pair<SVal, unsigned> *>(Data); + static_cast<const std::pair<SVal, uintptr_t> *>(Data); const SVal& V = D->first; return cast<Loc>(V); } unsigned getNumBits() const { const std::pair<SVal, uintptr_t> *D = - static_cast<const std::pair<SVal, unsigned> *>(Data); + static_cast<const std::pair<SVal, uintptr_t> *>(Data); return D->second; } |