Make DataLayout Non-Optional in the Module
[oota-llvm.git] / lib / Transforms / Scalar / BDCE.cpp
index c7bd79d9abbbf97ce413976243d7c87cf9631618..3ae05be3ddab3f0c26c8bbe40d00546ccdcb2b28 100644 (file)
@@ -263,7 +263,7 @@ bool BDCE::runOnFunction(Function& F) {
     return false;
 
   AC = &getAnalysis<AssumptionCacheTracker>().getAssumptionCache(F);
-  DL = F.getParent()->getDataLayout();
+  DL = &F.getParent()->getDataLayout();
   DT = &getAnalysis<DominatorTreeWrapperPass>().getDomTree();
 
   DenseMap<Instruction *, APInt> AliveBits;