[llvm-branch-commits] [mlir] [MLIR][LLVM]: Add an IR utility to perform slice walking (PR #103053)
Tobias Gysi via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Aug 14 08:17:04 PDT 2024
================
@@ -363,9 +323,14 @@ static void createNewAliasScopesFromNoAliasParameter(
// Find the set of underlying pointers that this pointer is based on.
SmallPtrSet<Value, 4> basedOnPointers;
- for (Value pointer : pointerArgs)
- llvm::copy(getUnderlyingObjectSet(pointer),
+ for (Value pointer : pointerArgs) {
+ FailureOr<SmallVector<Value>> underlyingObjectSet =
+ getUnderlyingObjectSet(pointer);
+ if (failed(underlyingObjectSet))
----------------
gysit wrote:
Can you add a test case that exercise the failure case?
https://github.com/llvm/llvm-project/pull/103053
More information about the llvm-branch-commits
mailing list