[llvm-commits] [llvm] r66381 - /llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp

Nick Lewycky nicholas at mxc.ca
Sun Mar 8 10:08:09 PDT 2009


Author: nicholas
Date: Sun Mar  8 12:08:09 2009
New Revision: 66381

URL: http://llvm.org/viewvc/llvm-project?rev=66381&view=rev
Log:
Fix comments, pointed out by Duncan Sands.

Modified:
    llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp

Modified: llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp?rev=66381&r1=66380&r2=66381&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp Sun Mar  8 12:08:09 2009
@@ -223,7 +223,7 @@
 }
 
 /// 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 @@
   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();
 





More information about the llvm-commits mailing list