OSDN Git Service

fix an obscure and tricky bug the inliner can hit sometimes.
authorChris Lattner <sabre@nondot.org>
Fri, 23 Feb 2007 19:54:30 +0000 (19:54 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 23 Feb 2007 19:54:30 +0000 (19:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34531 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/ValueMapper.cpp

index fd68240..bfba94a 100644 (file)
@@ -95,7 +95,7 @@ Value *llvm::MapValue(const Value *V, ValueMapTy &VM) {
           return VM[V] = ConstantVector::get(Values);
         }
       }
-      return VMSlot = C;
+      return VM[V] = C;
       
     } else {
       assert(0 && "Unknown type of constant!");