From 4bfba9da0afb00ea1cc7df764da03ed9ebb7676b Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Sun, 8 Mar 2009 17:08:09 +0000 Subject: [PATCH] Fix comments, pointed out by Duncan Sands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66381 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/FunctionAttrs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Transforms/IPO/FunctionAttrs.cpp b/lib/Transforms/IPO/FunctionAttrs.cpp index 23e49a57674..b6bd411abac 100644 --- a/lib/Transforms/IPO/FunctionAttrs.cpp +++ b/lib/Transforms/IPO/FunctionAttrs.cpp @@ -223,7 +223,7 @@ bool FunctionAttrs::AddNoCaptureAttrs(const std::vector &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 &SCCNodes) const { CallGraph &CG = getAnalysis(); @@ -297,8 +297,8 @@ bool FunctionAttrs::AddNoAliasAttrs(const std::vector &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(); -- 2.11.0