[llvm-commits] [llvm] r56654 - /llvm/branches/ggreif/use-diet/include/llvm/Value.h
Gabor Greif
ggreif at gmail.com
Fri Sep 26 09:15:01 PDT 2008
Author: ggreif
Date: Fri Sep 26 11:14:59 2008
New Revision: 56654
URL: http://llvm.org/viewvc/llvm-project?rev=56654&view=rev
Log:
this kind of inverted logic tends to produce crashes...
Modified:
llvm/branches/ggreif/use-diet/include/llvm/Value.h
Modified: llvm/branches/ggreif/use-diet/include/llvm/Value.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/include/llvm/Value.h?rev=56654&r1=56653&r2=56654&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/include/llvm/Value.h (original)
+++ llvm/branches/ggreif/use-diet/include/llvm/Value.h Fri Sep 26 11:14:59 2008
@@ -238,7 +238,7 @@
}
void Use::set(Value *V) {
- if (isNil(Next)) removeFromList();
+ if (!isNil(Next)) removeFromList();
if (V) V->addUse(*this);
else Next = nilUse(0);
}
More information about the llvm-commits
mailing list