[llvm-commits] [llvm] r121727 - /llvm/trunk/lib/Analysis/Lint.cpp
Dan Gohman
gohman at apple.com
Mon Dec 13 14:53:18 PST 2010
Author: djg
Date: Mon Dec 13 16:53:18 2010
New Revision: 121727
URL: http://llvm.org/viewvc/llvm-project?rev=121727&view=rev
Log:
Update a comment.
Modified:
llvm/trunk/lib/Analysis/Lint.cpp
Modified: llvm/trunk/lib/Analysis/Lint.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/Lint.cpp?rev=121727&r1=121726&r2=121727&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/Lint.cpp (original)
+++ llvm/trunk/lib/Analysis/Lint.cpp Mon Dec 13 16:53:18 2010
@@ -226,10 +226,9 @@
"Undefined behavior: Call argument type mismatches "
"callee parameter type", &I);
- // Check that noalias arguments don't alias other arguments. The
- // AliasAnalysis API isn't expressive enough for what we really want
- // to do. Known partial overlap is not distinguished from the case
- // where nothing is known.
+ // Check that noalias arguments don't alias other arguments. This is
+ // not fully precise because we don't know the sizes of the dereferenced
+ // memory regions.
if (Formal->hasNoAliasAttr() && Actual->getType()->isPointerTy())
for (CallSite::arg_iterator BI = CS.arg_begin(); BI != AE; ++BI)
if (AI != BI && (*BI)->getType()->isPointerTy()) {
More information about the llvm-commits
mailing list