[llvm] [IR] Add getDataLayout() helpers to BasicBlock and Instruction (PR #96902)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 27 06:49:25 PDT 2024
================
@@ -225,7 +225,7 @@ class LoadEliminationForLoop {
// Only propagate if the stored values are bit/pointer castable.
if (!CastInst::isBitOrNoopPointerCastable(
getLoadStoreType(Store), getLoadStoreType(Load),
- Store->getParent()->getModule()->getDataLayout()))
+ Store->getParent()->getDataLayout()))
----------------
dtcxzyw wrote:
```suggestion
Store->getDataLayout()))
```
https://github.com/llvm/llvm-project/pull/96902
More information about the llvm-commits
mailing list