[llvm-commits] [poolalloc] r75223 - /poolalloc/trunk/lib/PoolAllocate/PointerCompress.cpp

Haohui Mai mai4 at uiuc.edu
Thu Jul 9 21:05:37 PDT 2009


Author: mai4
Date: Thu Jul  9 23:05:31 2009
New Revision: 75223

URL: http://llvm.org/viewvc/llvm-project?rev=75223&view=rev
Log:
Match the latest LLVM API

Modified:
    poolalloc/trunk/lib/PoolAllocate/PointerCompress.cpp

Modified: poolalloc/trunk/lib/PoolAllocate/PointerCompress.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/PoolAllocate/PointerCompress.cpp?rev=75223&r1=75222&r2=75223&view=diff

==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/PointerCompress.cpp (original)
+++ poolalloc/trunk/lib/PoolAllocate/PointerCompress.cpp Thu Jul  9 23:05:31 2009
@@ -636,10 +636,10 @@
   if (SrcPI == 0) return;   // comparing non-compressed pointers.
  
   std::string Name = SCI.getName(); SCI.setName("");
-  Value *New = new ICmpInst(SCI.getPredicate(),
+  Value *New = new ICmpInst(&SCI, SCI.getPredicate(),
                             getTransformedValue(SCI.getOperand(0)),
                             getTransformedValue(SCI.getOperand(1)),
-                            Name, &SCI);
+                            Name);
   SCI.replaceAllUsesWith(New);
   ValueReplaced(SCI, New);
   SCI.eraseFromParent();
@@ -658,10 +658,10 @@
   if (SrcPI == 0) return;   // comparing non-compressed pointers.
  
   std::string Name = SCI.getName(); SCI.setName("");
-  Value *New = new FCmpInst(SCI.getPredicate(),
+  Value *New = new FCmpInst(&SCI, SCI.getPredicate(),
                             getTransformedValue(SCI.getOperand(0)),
                             getTransformedValue(SCI.getOperand(1)),
-                            Name, &SCI);
+                            Name);
   SCI.replaceAllUsesWith(New);
   ValueReplaced(SCI, New);
   SCI.eraseFromParent();





More information about the llvm-commits mailing list