Correct a comment.
authorDuncan Sands <baldrick@free.fr>
Tue, 13 Jan 2009 13:48:44 +0000 (13:48 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 13 Jan 2009 13:48:44 +0000 (13:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62165 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/GlobalOpt.cpp

index 1da33e6c7f2770053683cc9bca38f54a18983375..53aa03dab3585d273a56cd6c874c496a2c9d2b0a 100644 (file)
@@ -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
     } 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())) {
       // global.  This allows us to mark it constant.
       if (Constant *SOVConstant = dyn_cast<Constant>(GS.StoredOnceValue))
         if (isa<UndefValue>(GV->getInitializer())) {