[llvm-commits] [llvm] r56662 - in /llvm/branches/ggreif/use-diet/include/llvm: Use.h Value.h
Gabor Greif
ggreif at gmail.com
Fri Sep 26 09:55:37 PDT 2008
Author: ggreif
Date: Fri Sep 26 11:55:34 2008
New Revision: 56662
URL: http://llvm.org/viewvc/llvm-project?rev=56662&view=rev
Log:
be more thorough when checking whether a Use must be unchained
Modified:
llvm/branches/ggreif/use-diet/include/llvm/Use.h
llvm/branches/ggreif/use-diet/include/llvm/Value.h
Modified: llvm/branches/ggreif/use-diet/include/llvm/Use.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/include/llvm/Use.h?rev=56662&r1=56661&r2=56662&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/include/llvm/Use.h (original)
+++ llvm/branches/ggreif/use-diet/include/llvm/Use.h Fri Sep 26 11:55:34 2008
@@ -92,7 +92,7 @@
/// Destructor - Only for zap()
inline ~Use() {
- if (!isNil(Next)) removeFromList();
+ if (Next != nilUse(0)) removeFromList();
}
/// Default ctor - This leaves the Use completely uninitialized. The only thing
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=56662&r1=56661&r2=56662&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:55:34 2008
@@ -238,7 +238,7 @@
}
void Use::set(Value *V) {
- if (!isNil(Next)) removeFromList();
+ if (Next != nilUse(0)) removeFromList();
if (V) V->addUse(*this);
else Next = nilUse(0);
}
More information about the llvm-commits
mailing list