[llvm] Skip negative length while inferring initializes attr (PR #120874)

Haopeng Liu via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 22 09:35:55 PST 2024


================
@@ -633,10 +633,13 @@ ArgumentAccessInfo getArgmentAccessInfo(const Instruction *I,
       [](Value *Length,
          std::optional<int64_t> Offset) -> std::optional<ConstantRange> {
     auto *ConstantLength = dyn_cast<ConstantInt>(Length);
-    if (ConstantLength && Offset)
+    if (ConstantLength && Offset) {
----------------
haopliu wrote:

Done, thanks!

https://github.com/llvm/llvm-project/pull/120874


More information about the llvm-commits mailing list