]> granicus.if.org Git - clang/commitdiff
Print integer value instead of raw pointer. This is a hack to be fixed by migrating...
authorZhongxing Xu <xuzhongxing@gmail.com>
Mon, 10 Nov 2008 05:00:06 +0000 (05:00 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Mon, 10 Nov 2008 05:00:06 +0000 (05:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58965 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/BasicConstraintManager.cpp

index ea13ea30f2c5b6bf42b78b46ba4f1aab0797286d..b09d9de4469adf9a4edd3fe4906cfbd48d4fe81d 100644 (file)
@@ -258,8 +258,6 @@ BasicConstraintManager::AssumeSymInt(const GRState* St, bool Assumption,
   } // end switch
 }
 
-
-
 const GRState*
 BasicConstraintManager::AssumeSymNE(const GRState* St, SymbolID sym,
                                     const llvm::APSInt& V, bool& isFeasible) {
@@ -481,7 +479,7 @@ void BasicConstraintManager::print(const GRState* St, std::ostream& Out,
         if (isFirst) isFirst = false;
         else Out << ", ";
       
-        Out << *J;
+        Out << (*J)->getSExtValue(); // Hack: should print to raw_ostream.
       }
     }
   }