Skip to content

Commit

Permalink
Update comment for whether or not we can optimize an alias - we're
Browse files Browse the repository at this point in the history
checking the alias and not the aliasee. If the alias can be interposed
then we shouldn't do anything.

llvm-svn: 325837
  • Loading branch information
echristo committed Feb 22, 2018
1 parent 7de4500 commit 675dcf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/IPO/GlobalOpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2717,7 +2717,7 @@ OptimizeGlobalAliases(Module &M,
continue;
}

// If the aliasee may change at link time, nothing can be done - bail out.
// If the alias can change at link time, nothing can be done - bail out.
if (J->isInterposable())
continue;

Expand Down

0 comments on commit 675dcf0

Please sign in to comment.