aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/Store.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-07-06 20:53:52 +0000
committerTed Kremenek <kremenek@apple.com>2009-07-06 20:53:52 +0000
commitca4e1b765abd796b07dc6a78a9cb1711f467a8cc (patch)
tree2896d97830e68c208611e948f06d6722a83a1a74 /lib/Analysis/Store.cpp
parent48ce7deb86ffb1e028ac9a8e7cddffc32843c26c (diff)
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
Diffstat (limited to 'lib/Analysis/Store.cpp')
-rw-r--r--lib/Analysis/Store.cpp3
1 files changed, 1 insertions, 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<TypedViewRegion>(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);
}