]> granicus.if.org Git - clang/commitdiff
Add isUnsigned option.
authorZhongxing Xu <xuzhongxing@gmail.com>
Sat, 15 Nov 2008 05:17:04 +0000 (05:17 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Sat, 15 Nov 2008 05:17:04 +0000 (05:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59355 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/PathSensitive/BasicValueFactory.h

index a8995b149fbb8e9c83122eddcb98df939c3cebfa..639ff5d92cc89a6885d7bb1849c32b747b9addb4 100644 (file)
@@ -75,8 +75,8 @@ public:
   const llvm::APSInt& getValue(uint64_t X, unsigned BitWidth, bool isUnsigned);
   const llvm::APSInt& getValue(uint64_t X, QualType T);
 
-  inline const llvm::APSInt& getZeroWithPtrWidth() {
-    return getValue(0, Ctx.getTypeSize(Ctx.VoidPtrTy), true);
+  inline const llvm::APSInt& getZeroWithPtrWidth(bool isUnsigned = true) {
+    return getValue(0, Ctx.getTypeSize(Ctx.VoidPtrTy), isUnsigned);
   }
 
   inline const llvm::APSInt& getTruthValue(bool b) {