Remove getDataLayout() from TargetLowering
[oota-llvm.git] / lib / CodeGen / SelectionDAG / SelectionDAG.cpp
index baa8696257cc88a41f303e463cb5e3cfc2448d6a..32a0bf6b2d15e8a51e17d4f862575e39e21dcee8 100644 (file)
@@ -4546,7 +4546,7 @@ SDValue SelectionDAG::getMemmove(SDValue Chain, SDLoc dl, SDValue Dst,
   // Emit a library call.
   TargetLowering::ArgListTy Args;
   TargetLowering::ArgListEntry Entry;
-  Entry.Ty = TLI->getDataLayout()->getIntPtrType(*getContext());
+  Entry.Ty = getDataLayout().getIntPtrType(*getContext());
   Entry.Node = Dst; Args.push_back(Entry);
   Entry.Node = Src; Args.push_back(Entry);
   Entry.Node = Size; Args.push_back(Entry);