summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-02-09 16:28:15 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-02-09 16:28:15 +0000
commit1a4695a091f1b5ce751485f28659c8fb43183b95 (patch)
tree3649093826c02ac47a703348a366b1c317a48ade /llvm/lib/Transforms
parent5998c035ba24e46fe816569b4ab708b801b1c3e7 (diff)
downloadbcm5719-llvm-1a4695a091f1b5ce751485f28659c8fb43183b95.tar.gz
bcm5719-llvm-1a4695a091f1b5ce751485f28659c8fb43183b95.zip
Tweak comment readability and grammar.
llvm-svn: 150183
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/GlobalOpt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/GlobalOpt.cpp b/llvm/lib/Transforms/IPO/GlobalOpt.cpp
index 788fee0624f..9d7477a9ac3 100644
--- a/llvm/lib/Transforms/IPO/GlobalOpt.cpp
+++ b/llvm/lib/Transforms/IPO/GlobalOpt.cpp
@@ -2753,8 +2753,8 @@ static Function *FindCXAAtExit(Module &M) {
/// destructor and can therefore be eliminated.
/// Note that we assume that other optimization passes have already simplified
/// the code so we only look for a function with a single basic block, where
-/// the only allowed instructions side-effect free, 'ret' or 'call' to empty
-/// C++ dtor.
+/// the only allowed instructions are 'ret', 'call' to an empty C++ dtor and
+/// other side-effect free instructions.
static bool cxxDtorIsEmpty(const Function &Fn,
SmallPtrSet<const Function *, 8> &CalledFunctions) {
// FIXME: We could eliminate C++ destructors if they're readonly/readnone and
OpenPOWER on IntegriCloud