aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-19 19:20:20 +0000
committerChris Lattner <sabre@nondot.org>2003-11-19 19:20:20 +0000
commitbb4a15ca574c140146ee61d38aab61ed61efcfdf (patch)
treed1588b856382bbbea8d2be893fa98fdb60e225d9
parent542d991451c20ab17dc4c3f0b856bb632e546016 (diff)
Really, there was a reason for me factoring that out
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10089 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/Type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index 4796ad2496..dd20b16987 100644
--- a/lib/VMCore/Type.cpp
+++ b/lib/VMCore/Type.cpp
@@ -619,7 +619,7 @@ public:
// 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.