[cfe-commits] r59355 - /cfe/trunk/include/clang/Analysis/PathSensitive/BasicValueFactory.h

Zhongxing Xu xuzhongxing at gmail.com
Fri Nov 14 21:17:05 PST 2008


Author: zhongxingxu
Date: Fri Nov 14 23:17:04 2008
New Revision: 59355

URL: http://llvm.org/viewvc/llvm-project?rev=59355&view=rev
Log:
Add isUnsigned option.

Modified:
    cfe/trunk/include/clang/Analysis/PathSensitive/BasicValueFactory.h

Modified: cfe/trunk/include/clang/Analysis/PathSensitive/BasicValueFactory.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/PathSensitive/BasicValueFactory.h?rev=59355&r1=59354&r2=59355&view=diff

==============================================================================
--- cfe/trunk/include/clang/Analysis/PathSensitive/BasicValueFactory.h (original)
+++ cfe/trunk/include/clang/Analysis/PathSensitive/BasicValueFactory.h Fri Nov 14 23:17:04 2008
@@ -75,8 +75,8 @@
   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) {





More information about the cfe-commits mailing list