[cfe-commits] r160349 - /cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h

Alexey Samsonov samsonov at google.com
Tue Jul 17 00:46:40 PDT 2012


Author: samsonov
Date: Tue Jul 17 02:46:40 2012
New Revision: 160349

URL: http://llvm.org/viewvc/llvm-project?rev=160349&view=rev
Log:
Fixup for r160345 - uintptr_t is not always unsigned

Modified:
    cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h

Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h?rev=160349&r1=160348&r2=160349&view=diff
==============================================================================
--- cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h (original)
+++ cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h Tue Jul 17 02:46:40 2012
@@ -327,20 +327,20 @@
 
   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;
   }
 





More information about the cfe-commits mailing list