diff options
Diffstat (limited to 'llvm/lib/CodeGen/SafeStack.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SafeStack.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SafeStack.cpp b/llvm/lib/CodeGen/SafeStack.cpp index 0a26247..e41d1bf 100644 --- a/llvm/lib/CodeGen/SafeStack.cpp +++ b/llvm/lib/CodeGen/SafeStack.cpp @@ -886,7 +886,7 @@ public: if (!TL) report_fatal_error("TargetLowering instance is required"); - auto *DL = &F.getParent()->getDataLayout(); + auto *DL = &F.getDataLayout(); auto &TLI = getAnalysis<TargetLibraryInfoWrapperPass>().getTLI(F); auto &ACT = getAnalysis<AssumptionCacheTracker>().getAssumptionCache(F); @@ -946,7 +946,7 @@ PreservedAnalyses SafeStackPass::run(Function &F, if (!TL) report_fatal_error("TargetLowering instance is required"); - auto &DL = F.getParent()->getDataLayout(); + auto &DL = F.getDataLayout(); // preserve DominatorTree auto &DT = FAM.getResult<DominatorTreeAnalysis>(F); |