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
diff --git a/lib/Analysis/Store.cpp b/lib/Analysis/Store.cpp
index 5ca2da5..4f0e4a6 100644
--- a/lib/Analysis/Store.cpp
+++ b/lib/Analysis/Store.cpp
@@ -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);
}