[llvm-commits] CVS: llvm/lib/VMCore/Type.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Nov 19 13:21:01 PST 2003


Changes in directory llvm/lib/VMCore:

Type.cpp updated: 1.82 -> 1.83

---
Log message:

Really, there was a reason for me factoring that out


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/VMCore/Type.cpp
diff -u llvm/lib/VMCore/Type.cpp:1.82 llvm/lib/VMCore/Type.cpp:1.83
--- llvm/lib/VMCore/Type.cpp:1.82	Wed Nov 19 13:10:23 2003
+++ llvm/lib/VMCore/Type.cpp	Wed Nov 19 13:20:20 2003
@@ -619,7 +619,7 @@
     // efficient lookup in the map, instead of an inefficient nasty linear
     // lookup.
     if (!HasTypeCycle) {
-      iterator I = Map.find(ValType::get(Ty));
+      iterator I = Map.find(Key);
       if (I != Map.end()) {
         // We already have this type in the table.  Get rid of the newly refined
         // type.





More information about the llvm-commits mailing list