diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-03 00:56:30 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-03 00:56:30 +0000 |
commit | 847a84efd23a2c7d90429b82f6e0f19d1f913d9a (patch) | |
tree | b062e4005b095d924e9a6f2426fc9d24047e9dff /lib/Analysis/Lint.cpp | |
parent | ab37f50838350e1104579fbd1f7c8820473485a5 (diff) |
Add a convenient form of AliasAnalysis::alias for the case where the sizes
are unknown.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110090 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/Lint.cpp')
-rw-r--r-- | lib/Analysis/Lint.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/Lint.cpp b/lib/Analysis/Lint.cpp index 5624430332..fe01fd7b22 100644 --- a/lib/Analysis/Lint.cpp +++ b/lib/Analysis/Lint.cpp @@ -246,8 +246,7 @@ void Lint::visitCallSite(CallSite CS) { // where nothing is known. if (Formal->hasNoAliasAttr() && Actual->getType()->isPointerTy()) for (CallSite::arg_iterator BI = CS.arg_begin(); BI != AE; ++BI) { - Assert1(AI == BI || - AA->alias(*AI, ~0u, *BI, ~0u) != AliasAnalysis::MustAlias, + Assert1(AI == BI || AA->alias(*AI, *BI) != AliasAnalysis::MustAlias, "Unusual: noalias argument aliases another argument", &I); } |