Author: kremenek
Date: Mon Jul  6 15:53:52 2009
New Revision: 74852

URL: http://llvm.org/viewvc/llvm-project?rev=74852&view=rev
Log:
Fix loop so that 'continue' statements actually cause the loop to iterate.

Modified:
    cfe/trunk/lib/Analysis/Store.cpp

Modified: cfe/trunk/lib/Analysis/Store.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/Store.cpp?rev=74852&r1=74851&r2=74852&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/Store.cpp (original)
+++ cfe/trunk/lib/Analysis/Store.cpp Mon Jul  6 15:53:52 2009
@@ -122,7 +122,7 @@
     QualType Pointee = PTy->getPointeeType();
     if (Pointee->isVoidType()) {
 
-      do {
+      while (true) {
         if (const TypedViewRegion *TR = dyn_cast<TypedViewRegion>(R)) {
           // Casts to void* removes TypedViewRegion. This happens when:
           //
@@ -152,7 +152,6 @@
         else
           break;
       }
-      while (0);
       
       return CastResult(state, R);
     }


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to