From: Zhongxing Xu Date: Sat, 15 Nov 2008 05:17:04 +0000 (+0000) Subject: Add isUnsigned option. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bb87e8de5fc8e4c91e78468b65a66b5b2b82d71;p=clang Add isUnsigned option. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59355 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Analysis/PathSensitive/BasicValueFactory.h b/include/clang/Analysis/PathSensitive/BasicValueFactory.h index a8995b149f..639ff5d92c 100644 --- a/include/clang/Analysis/PathSensitive/BasicValueFactory.h +++ b/include/clang/Analysis/PathSensitive/BasicValueFactory.h @@ -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) {