summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/lib/Analysis/Store.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Analysis/Store.cpp b/clang/lib/Analysis/Store.cpp
index 5ca2da50579..4f0e4a62e90 100644
--- a/clang/lib/Analysis/Store.cpp
+++ b/clang/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);
}
OpenPOWER on IntegriCloud