[cfe-commits] r43789 - /cfe/trunk/Rewrite/Rewriter.cpp
Fariborz Jahanian
fjahanian at apple.com
Tue Nov 6 15:06:16 PST 2007
Author: fjahanian
Date: Tue Nov 6 17:06:16 2007
New Revision: 43789
URL: http://llvm.org/viewvc/llvm-project?rev=43789&view=rev
Log:
Fix an inverted conditional,
--chris
Modified:
cfe/trunk/Rewrite/Rewriter.cpp
Modified: cfe/trunk/Rewrite/Rewriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Rewrite/Rewriter.cpp?rev=43789&r1=43788&r2=43789&view=diff
==============================================================================
--- cfe/trunk/Rewrite/Rewriter.cpp (original)
+++ cfe/trunk/Rewrite/Rewriter.cpp Tue Nov 6 17:06:16 2007
@@ -78,7 +78,7 @@
Deltas[DeltaIdx].Delta += Change;
// If it is now dead, remove it.
- if (Deltas[DeltaIdx].Delta)
+ if (Deltas[DeltaIdx].Delta == 0)
Deltas.erase(Deltas.begin()+DeltaIdx);
}
More information about the cfe-commits
mailing list