DataLayout is mandatory, update the API to reflect it with references.
[oota-llvm.git] / lib / Analysis / MemDerefPrinter.cpp
index 5b74f5c1fab396ebf089b96560819a713d6ceee5..6119a3da617e500174c5eeb4bc75fd77ee141af3 100644 (file)
@@ -53,7 +53,7 @@ bool MemDerefPrinter::runOnFunction(Function &F) {
   for (auto &I: inst_range(F)) {
     if (LoadInst *LI = dyn_cast<LoadInst>(&I)) {
       Value *PO = LI->getPointerOperand();
-      if (PO->isDereferenceablePointer(&DL))
+      if (PO->isDereferenceablePointer(DL))
         Vec.push_back(PO);
     }
   }