[cfe-commits] r74852 - /cfe/trunk/lib/Analysis/Store.cpp
Ted Kremenek
kremenek at apple.com
Mon Jul 6 13:53:53 PDT 2009
Author: kremenek
Date: Mon Jul 6 15:53:52 2009
New Revision: 74852
URL: http://llvm.org/viewvc/llvm-project?rev=74852&view=rev
Log:
Fix loop so that 'continue' statements actually cause the loop to iterate.
Modified:
cfe/trunk/lib/Analysis/Store.cpp
Modified: cfe/trunk/lib/Analysis/Store.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/Store.cpp?rev=74852&r1=74851&r2=74852&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/Store.cpp (original)
+++ cfe/trunk/lib/Analysis/Store.cpp Mon Jul 6 15:53:52 2009
@@ -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);
}
More information about the cfe-commits
mailing list