aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-01-13 13:48:44 +0000
committerDuncan Sands <baldrick@free.fr>2009-01-13 13:48:44 +0000
commitb5024401648eb58e2a9150ce0f57a56ad87daeaf (patch)
treef739eda3fb6bab5c7b67abbb7fe16d9ea954439d
parent789558db70d9513a017c11c5be30945839fdff1c (diff)
Correct a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62165 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/IPO/GlobalOpt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/GlobalOpt.cpp b/lib/Transforms/IPO/GlobalOpt.cpp
index 1da33e6c7f..53aa03dab3 100644
--- a/lib/Transforms/IPO/GlobalOpt.cpp
+++ b/lib/Transforms/IPO/GlobalOpt.cpp
@@ -1715,7 +1715,7 @@ bool GlobalOpt::ProcessInternalGlobal(GlobalVariable *GV,
} else if (GS.StoredType == GlobalStatus::isStoredOnce) {
// If the initial value for the global was an undef value, and if only
// one other value was stored into it, we can just change the
- // initializer to be an undef value, then delete all stores to the
+ // initializer to be the stored value, then delete all stores to the
// global. This allows us to mark it constant.
if (Constant *SOVConstant = dyn_cast<Constant>(GS.StoredOnceValue))
if (isa<UndefValue>(GV->getInitializer())) {