[llvm-commits] [llvm] r49624 - /llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp
Gabor Greif
ggreif at gmail.com
Sun Apr 13 14:47:53 PDT 2008
Author: ggreif
Date: Sun Apr 13 16:47:51 2008
New Revision: 49624
URL: http://llvm.org/viewvc/llvm-project?rev=49624&view=rev
Log:
ooops, fix compilation error
Modified:
llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp
Modified: llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp?rev=49624&r1=49623&r2=49624&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp (original)
+++ llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp Sun Apr 13 16:47:51 2008
@@ -76,8 +76,9 @@
//===----------------------------------------------------------------------===//
void Use::zap(Use *Start, const Use *Stop, bool del) {
- while (Start != Stop) {
- (--Stop)->set(0);
+ Use *Iter = Start;
+ while (Iter != Stop) {
+ (Iter++)->set(0);
}
if (del)
::operator delete(Start);
More information about the llvm-commits
mailing list