Fix loop so that 'continue' statements actually cause the loop to iterate.
llvm-svn: 74852
This commit is contained in:
parent
9e010e11c3
commit
3ad4b3bca3
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue