mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-02 21:17:17 +00:00
Fix comments, pointed out by Duncan Sands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66381 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -223,7 +223,7 @@ bool FunctionAttrs::AddNoCaptureAttrs(const std::vector<CallGraphNode *> &SCC) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// IsFunctionMallocLike - A function is malloc-like if it returns either null
|
/// 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,
|
bool FunctionAttrs::IsFunctionMallocLike(Function *F,
|
||||||
SmallPtrSet<CallGraphNode*, 8> &SCCNodes) const {
|
SmallPtrSet<CallGraphNode*, 8> &SCCNodes) const {
|
||||||
CallGraph &CG = getAnalysis<CallGraph>();
|
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)
|
for (unsigned i = 0, e = SCC.size(); i != e; ++i)
|
||||||
SCCNodes.insert(SCC[i]);
|
SCCNodes.insert(SCC[i]);
|
||||||
|
|
||||||
// Check each function in turn, determining which pointer arguments are not
|
// Check each function in turn, determining which functions return noalias
|
||||||
// captured.
|
// pointers.
|
||||||
for (unsigned i = 0, e = SCC.size(); i != e; ++i) {
|
for (unsigned i = 0, e = SCC.size(); i != e; ++i) {
|
||||||
Function *F = SCC[i]->getFunction();
|
Function *F = SCC[i]->getFunction();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user