From ca4e1b765abd796b07dc6a78a9cb1711f467a8cc Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Mon, 6 Jul 2009 20:53:52 +0000 Subject: [PATCH] Fix loop so that 'continue' statements actually cause the loop to iterate. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74852 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/Store.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Analysis/Store.cpp b/lib/Analysis/Store.cpp index 5ca2da5057..4f0e4a62e9 100644 --- a/lib/Analysis/Store.cpp +++ b/lib/Analysis/Store.cpp @@ -122,7 +122,7 @@ StoreManager::OldCastRegion(const GRState* state, const MemRegion* R, QualType Pointee = PTy->getPointeeType(); if (Pointee->isVoidType()) { - do { + while (true) { if (const TypedViewRegion *TR = dyn_cast(R)) { // Casts to void* removes TypedViewRegion. This happens when: // @@ -152,7 +152,6 @@ StoreManager::OldCastRegion(const GRState* state, const MemRegion* R, else break; } - while (0); return CastResult(state, R); } -- 2.40.0