instcombine: merge the functions that remove dead allocas and dead mallocs/callocs/...
[oota-llvm.git] / lib / Transforms / InstCombine / InstCombineCalls.cpp
index f74cff85c65b24b9eb1e893286d6f1350e5f6bb9..c1d9d01c8d83e6155ea266beb1ec650e6d0035a3 100644 (file)
@@ -880,7 +880,7 @@ static IntrinsicInst *FindInitTrampoline(Value *Callee) {
 //
 Instruction *InstCombiner::visitCallSite(CallSite CS) {
   if (isAllocLikeFn(CS.getInstruction()))
-    return visitMalloc(*CS.getInstruction());
+    return visitAllocSite(*CS.getInstruction());
 
   bool Changed = false;