[llvm] [Attributor]: Fix Potential bug when handling PHI in AAPointerInfo (PR #97321)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 1 10:25:34 PDT 2024
================
@@ -214,7 +214,7 @@ ChangeStatus clampStateAndIndicateChange<DerefState>(DerefState &S,
static bool mayBeInCycle(const CycleInfo *CI, const Instruction *I,
bool HeaderOnly, Cycle **CPtr = nullptr) {
if (!CI)
- return true;
+ return false;
----------------
shiltian wrote:
I thought we need to assume the worst if certain info is not available?
https://github.com/llvm/llvm-project/pull/97321
More information about the llvm-commits
mailing list