[llvm-commits] CVS: llvm/include/llvm/Analysis/DSSupport.h
    Chris Lattner 
    lattner at cs.uiuc.edu
       
    Tue Jul  1 12:12:04 PDT 2003
    
    
  
Changes in directory llvm/include/llvm/Analysis:
DSSupport.h updated: 1.17 -> 1.18
---
Log message:
Fix major problem that was causing all kinds of nasty foldings
---
Diffs of the changes:
Index: llvm/include/llvm/Analysis/DSSupport.h
diff -u llvm/include/llvm/Analysis/DSSupport.h:1.17 llvm/include/llvm/Analysis/DSSupport.h:1.18
--- llvm/include/llvm/Analysis/DSSupport.h:1.17	Sat Jun 21 22:05:45 2003
+++ llvm/include/llvm/Analysis/DSSupport.h	Tue Jul  1 12:10:50 2003
@@ -60,6 +60,7 @@
   }
   ~DSNodeHandle() { setNode((DSNode*)0); }
   DSNodeHandle &operator=(const DSNodeHandle &H) {
+    if (&H != this) return *this;  // Don't set offset to 0 if self assigning.
     Offset = 0; setNode(H.getNode()); Offset = H.Offset;
     return *this;
   }
    
    
More information about the llvm-commits
mailing list