Minor cleanup
authorChris Lattner <sabre@nondot.org>
Sun, 14 Oct 2001 23:29:30 +0000 (23:29 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 14 Oct 2001 23:29:30 +0000 (23:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@812 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/InlineSimple.cpp

index 609c3f14d985bf31d3f9e452ceca4c0b51d3de89..c135f6566b23ff5e4c3495908628ee60351f7cf3 100644 (file)
@@ -133,7 +133,7 @@ bool opt::InlineMethod(BasicBlock::iterator CIIt) {
     // Create a new basic block to copy instructions into!
     BasicBlock *IBB = new BasicBlock("", NewBB->getParent());
 
-    ValueMap[*BI] = IBB;                       // Add basic block mapping.
+    ValueMap[BB] = IBB;                       // Add basic block mapping.
 
     // Make sure to capture the mapping that a return will use...
     // TODO: This assumes that the RET is returning a value computed in the same