diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-03-08 17:08:09 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-03-08 17:08:09 +0000 |
commit | 9ec96d19e3d6106c90b8f874b3dcace5999fc2d6 (patch) | |
tree | 57d39e4bfe268f69dd25e2b5219d2fd2619c3c62 /llvm/lib/Transforms | |
parent | d725c991999f41bd96bfe8986f3e7169d1445e58 (diff) | |
download | bcm5719-llvm-9ec96d19e3d6106c90b8f874b3dcace5999fc2d6.tar.gz bcm5719-llvm-9ec96d19e3d6106c90b8f874b3dcace5999fc2d6.zip |
Fix comments, pointed out by Duncan Sands.
llvm-svn: 66381
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/IPO/FunctionAttrs.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp index 23e49a57674..b6bd411abac 100644 --- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp +++ b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp @@ -223,7 +223,7 @@ bool FunctionAttrs::AddNoCaptureAttrs(const std::vector<CallGraphNode *> &SCC) { } /// IsFunctionMallocLike - A function is malloc-like if it returns either null -/// or a pointer that don't alias any other pointer visible to the caller. +/// or a pointer that doesn't alias any other pointer visible to the caller. bool FunctionAttrs::IsFunctionMallocLike(Function *F, SmallPtrSet<CallGraphNode*, 8> &SCCNodes) const { CallGraph &CG = getAnalysis<CallGraph>(); @@ -297,8 +297,8 @@ bool FunctionAttrs::AddNoAliasAttrs(const std::vector<CallGraphNode *> &SCC) { for (unsigned i = 0, e = SCC.size(); i != e; ++i) SCCNodes.insert(SCC[i]); - // Check each function in turn, determining which pointer arguments are not - // captured. + // Check each function in turn, determining which functions return noalias + // pointers. for (unsigned i = 0, e = SCC.size(); i != e; ++i) { Function *F = SCC[i]->getFunction(); |