]> granicus.if.org Git - clang/commitdiff
Minor cleanups (mainly indentation).
authorTed Kremenek <kremenek@apple.com>
Wed, 5 Mar 2008 19:08:15 +0000 (19:08 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 5 Mar 2008 19:08:15 +0000 (19:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47955 91177308-0d34-0410-b5e6-96231b3b80d8

Analysis/GRCoreEngine.cpp
Analysis/GRExprEngine.cpp
Analysis/LiveVariables.cpp

index 4eb024f036d9fdfd386cddfa996e72169a01cf8c..cff33373cffaa645c9f0f287530e315b8068f57d 100644 (file)
@@ -113,7 +113,8 @@ bool GRCoreEngineImpl::ExecuteWorkList(unsigned Steps) {
   return WList->hasWork();
 }
 
-void GRCoreEngineImpl::HandleBlockEdge(const BlockEdge& L, ExplodedNodeImpl* Pred) {
+void GRCoreEngineImpl::HandleBlockEdge(const BlockEdge& L,
+                                       ExplodedNodeImpl* Pred) {
   
   CFGBlock* Blk = L.getDst();
   
@@ -144,7 +145,7 @@ void GRCoreEngineImpl::HandleBlockEdge(const BlockEdge& L, ExplodedNodeImpl* Pre
 }
 
 void GRCoreEngineImpl::HandleBlockEntrance(const BlockEntrance& L,
-                                       ExplodedNodeImpl* Pred) {
+                                           ExplodedNodeImpl* Pred) {
   
   // Increment the block counter.
   GRBlockCounter Counter = WList->getBlockCounter();
index 4cd942b57e72d07bf0fdf29b00ce540bc54c7b4f..77e97875d0394011b9dbae1680c6425b93f21d2e 100644 (file)
@@ -69,20 +69,6 @@ ValueState* GRExprEngine::SetRVal(ValueState* St, Expr* Ex, RVal V) {
   return StateMgr.SetRVal(St, Ex, V, isBlkExpr, false);
 }
 
-#if 0
-const ValueState::BufferTy&
-GRExprEngine::SetRVal(ValueState* St, Expr* Ex, const RVal::BufferTy& RB,
-                      ValueState::BufferTy& RetBuf) {
-  
-  assert (RetBuf.empty());
-  
-  for (RVal::BufferTy::const_iterator I = RB.begin(), E = RB.end(); I!=E; ++I)
-    RetBuf.push_back(SetRVal(St, Ex, *I));
-                     
-  return RetBuf;
-}
-#endif
-
 ValueState* GRExprEngine::SetRVal(ValueState* St, LVal LV, RVal RV) {
   
   if (!StateCleaned) {
index 52f7f4d19bf98abe8e8ceb34583944b24640e491..9515cb8eb715b79e4a654ce6f47188ca78b1cbf8 100644 (file)
@@ -86,7 +86,8 @@ void TransferFuncs::Visit(Stmt *S) {
     AD.Observer->ObserveStmt(S,AD,LiveState);
   
   if (S == getCurrentBlkStmt()) {
-    if (getCFG().isBlkExpr(S)) LiveState(S,AD) = Dead;
+    assert (!isa<Expr>(S) || getCFG().isBlkExpr(S));
+    if (isa<Expr>(S)) LiveState(S,AD) = Dead;
     StmtVisitor<TransferFuncs,void>::Visit(S);
   }
   else if (!getCFG().isBlkExpr(S))