DataLayout is mandatory, update the API to reflect it with references.
[oota-llvm.git] / lib / Target / PowerPC / PPCLoopDataPrefetch.cpp
index afa83cfd2b19347a7362a184f617f1d6d3f50383..005bcafe0cf0634400a96e19a80d8cdef14d3dc8 100644 (file)
@@ -211,7 +211,7 @@ bool PPCLoopDataPrefetch::runOnLoop(Loop *L) {
       PrefLoads.push_back(std::make_pair(MemI, LSCEVAddRec));
 
       Type *I8Ptr = Type::getInt8PtrTy((*I)->getContext(), PtrAddrSpace);
-      SCEVExpander SCEVE(*SE, "prefaddr");
+      SCEVExpander SCEVE(*SE, J->getModule()->getDataLayout(), "prefaddr");
       Value *PrefPtrValue = SCEVE.expandCodeFor(NextLSCEV, I8Ptr, MemI);
 
       IRBuilder<> Builder(MemI);