diff options
Diffstat (limited to 'llvm/lib/Analysis/Loads.cpp')
-rw-r--r-- | llvm/lib/Analysis/Loads.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/Loads.cpp b/llvm/lib/Analysis/Loads.cpp index 478302d..2b81970 100644 --- a/llvm/lib/Analysis/Loads.cpp +++ b/llvm/lib/Analysis/Loads.cpp @@ -165,7 +165,7 @@ static bool isDereferenceableAndAlignedPointer( if (getKnowledgeForValue( V, {Attribute::Dereferenceable, Attribute::Alignment}, AC, [&](RetainedKnowledge RK, Instruction *Assume, auto) { - if (!isValidAssumeForContext(Assume, CtxI)) + if (!isValidAssumeForContext(Assume, CtxI, DT)) return false; if (RK.AttrKind == Attribute::Alignment) AlignRK = std::max(AlignRK, RK); |