[llvm-commits] [llvm] r49557 - in /llvm/branches/ggreif/use-diet: include/llvm/Value.h lib/VMCore/Use.cpp
Gabor Greif
ggreif at gmail.com
Fri Apr 11 13:32:01 PDT 2008
Author: ggreif
Date: Fri Apr 11 15:32:01 2008
New Revision: 49557
URL: http://llvm.org/viewvc/llvm-project?rev=49557&view=rev
Log:
introduce discrepancy check
Modified:
llvm/branches/ggreif/use-diet/include/llvm/Value.h
llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp
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=49557&r1=49556&r2=49557&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/include/llvm/Value.h (original)
+++ llvm/branches/ggreif/use-diet/include/llvm/Value.h Fri Apr 11 15:32:01 2008
@@ -226,6 +226,7 @@
void Use::init(Value *V, User *user) {
Val = transferTag(V);
U = user;
+ assert(U == getUser() && "Use::init discrepancy?");
if (V) V->addUse(*this);
}
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=49557&r1=49556&r2=49557&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp (original)
+++ llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp Fri Apr 11 15:32:01 2008
@@ -58,6 +58,7 @@
while (Start != Stop)
{
--Stop;
+ Stop->U = 0;
if (!Count) {
Stop->Val = reinterpret_cast<Value*>(Done == 0 ? fullStopTag : stopTag);
++Done;
More information about the llvm-commits
mailing list